Skip to content

Commit

Permalink
fix failing node specs, part 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Kong committed Dec 1, 2023
1 parent 0a2ca78 commit d39eb76
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,6 @@ import * as React from 'react';
import { Lessons } from '../../components/lessons/lessons';
import LinkListItem from '../../components/shared/linkListItem';

jest.mock('underscore', () => ({
default: {
keys: jest.fn(() => (['17', '18', '19']))
}
}));

describe('Lessons Component', () => {
const mockProps = {
concepts: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as expect from 'expect';
import expect from 'expect';
import * as React from 'react';

import { Feedback } from '../../../Shared/index';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import * as React from 'react';

import VerifyEmail from '../verify_email';

jest.mock('qs', () => ({
default: {
parse: jest.fn(() => ({}))
}
}))
// jest.mock('qs', () => ({
// default: {
// parse: jest.fn(() => ({}))
// }
// }))

const user = {
name: 'User Name',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,6 @@ import {

import { Questions, } from '../questions'

jest.mock('qs', () => ({
default: {
parse: jest.fn(() => ({}))
}
})
)

describe('Questions component', () => {
it('should render when there is no student data', () => {
const wrapper = mount(<Questions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,6 @@ import {

import { Results, } from '../results'

// jest.mock('qs', () => ({
// default: {
// parse: jest.fn(() => ({}))
// }
// })
// )

describe('Results component', () => {
it('should render when there are results', () => {
const wrapper = mount(<Results
Expand Down

0 comments on commit d39eb76

Please sign in to comment.