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 Nov 30, 2023
1 parent 0a2ca78 commit cc3ebb7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 25 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
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 cc3ebb7

Please sign in to comment.