File tree Expand file tree Collapse file tree 3 files changed +10
-12
lines changed Expand file tree Collapse file tree 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'
34
45const mocha = require ( 'mocha' )
56const describe = mocha . describe
67const it = mocha . it
7- const expect = require ( 'chai' ) . expect
88
99function mockSetting ( componentSetting = { } ) {
1010 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'
75
86describe ( 'getRole' , function ( ) {
97 it ( 'returns undefined when polymorphic prop is set with a non-literal expression' , function ( ) {
Original file line number Diff line number Diff line change 11// @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'
55
66describe ( 'ObjectMap' , function ( ) {
77 it ( 'constructs an ObjectMap' , function ( ) {
You can’t perform that action at this time.
0 commit comments