File tree 3 files changed +10
-12
lines changed
3 files changed +10
-12
lines changed Original file line number Diff line number Diff line change 1
- const { getElementType} = require ( '../../lib/utils/get-element-type' )
2
- const { mockJSXAttribute, mockJSXConditionalAttribute, mockJSXOpeningElement} = require ( './mocks' )
1
+ import { expect } from 'chai'
2
+ import { getElementType } from '../../lib/utils/get-element-type'
3
+ import { mockJSXAttribute , mockJSXConditionalAttribute , mockJSXOpeningElement } from './mocks'
3
4
4
5
const mocha = require ( 'mocha' )
5
6
const describe = mocha . describe
6
7
const it = mocha . it
7
- const expect = require ( 'chai' ) . expect
8
8
9
9
function mockSetting ( componentSetting = { } ) {
10
10
return {
Original file line number Diff line number Diff line change 1
- const { getRole} = require ( '../../lib/utils/get-role' )
2
- const { mockJSXAttribute, mockJSXConditionalAttribute, mockJSXOpeningElement} = require ( './mocks' )
3
- const mocha = require ( 'mocha' )
4
- const describe = mocha . describe
5
- const it = mocha . it
6
- const expect = require ( 'chai' ) . expect
1
+ import { expect } from 'chai'
2
+ import { getRole } from '../../lib/utils/get-role'
3
+ import { mockJSXAttribute , mockJSXConditionalAttribute , mockJSXOpeningElement } from './mocks'
4
+ import { describe , it } from 'mocha'
7
5
8
6
describe ( 'getRole' , function ( ) {
9
7
it ( 'returns undefined when polymorphic prop is set with a non-literal expression' , function ( ) {
Original file line number Diff line number Diff line change 1
1
// @ts -check
2
- const ObjectMap = require ( '../../lib/utils/object-map' )
3
- const { describe , it } = require ( 'mocha' )
4
- const expect = require ( 'chai' ) . expect
2
+ import { expect } from 'chai'
3
+ import ObjectMap from '../../lib/utils/object-map'
4
+ import { describe , it } from 'mocha'
5
5
6
6
describe ( 'ObjectMap' , function ( ) {
7
7
it ( 'constructs an ObjectMap' , function ( ) {
You can’t perform that action at this time.
0 commit comments