Skip to content

Commit 450b76a

Browse files
authored
Merge pull request #42 from oslabs-beta/Ahnafkhvn/testing2
added more testing to navbar
2 parents 108adc1 + a9f56e4 commit 450b76a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

__tests__/NavBar.test.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ describe('NavBar Component', () => {
121121
fireEvent.click(publishButton);
122122
});
123123

124-
xit('handles publish correctly with new project', async () => {
124+
it('handles publish correctly with new project', async () => {
125125
const publishProjectMock = jest.spyOn(projectFunctions, 'publishProject');
126126
publishProjectMock.mockResolvedValueOnce({
127127
_id: 'mockedId',
@@ -168,7 +168,7 @@ describe('NavBar Component', () => {
168168
});
169169

170170

171-
xit('handles unpublish correctly', async () => {
171+
it('handles unpublish correctly', async () => {
172172
const unpublishProjectMock = jest.spyOn(projectFunctions, 'unpublishProject');
173173
unpublishProjectMock.mockResolvedValueOnce({
174174
_id: 'mockedId',
@@ -205,7 +205,7 @@ describe('NavBar Component', () => {
205205
}
206206
});
207207

208-
xit('handles export correctly', async () => {
208+
it('handles export correctly', async () => {
209209
const store = configureStore({
210210
reducer: rootReducer,
211211
preloadedState: {
@@ -239,7 +239,6 @@ describe('NavBar Component', () => {
239239
fireEvent.click(exportComponentsOption);
240240

241241
});
242-
243242
test('handles dropdown menu correctly', async () => {
244243
const store = configureStore({
245244
reducer: rootReducer,

0 commit comments

Comments
 (0)