Skip to content

Commit

Permalink
Use import...from instead of require in test
Browse files Browse the repository at this point in the history
  • Loading branch information
jgreben committed May 15, 2019
1 parent 99be38a commit b8bc909
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions __tests__/components/editor/ResourceTemplateForm.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import React from 'react'
import 'jsdom-global/register'
import { shallow } from 'enzyme'
import shortid from 'shortid'
import { ResourceTemplateForm } from '../../../src/components/editor/ResourceTemplateForm'

describe('<ResourceTemplateForm /> functional testing', () => {
Expand All @@ -11,8 +12,7 @@ describe('<ResourceTemplateForm /> functional testing', () => {
const basicWrapper = shallow(<ResourceTemplateForm propertyTemplates={[]}
rtId={'resource:schema:Name'}
resourceTemplate={ basicRt } />)

const shortid = require('shortid')

shortid.generate = jest.fn().mockReturnValue('abcd45')

describe('resourceTemplateFields expectations and outputs', () => {
Expand Down

0 comments on commit b8bc909

Please sign in to comment.