2019-01-29 19:23:42 +00:00
|
|
|
import * as Util from '../src'
|
|
|
|
import * as context from '../src/context'
|
|
|
|
import * as lang from '../src/lang'
|
2019-03-03 08:12:46 +00:00
|
|
|
import * as locking from '../src/locking'
|
2019-01-29 19:23:42 +00:00
|
|
|
import * as resolve from '../src/resolve'
|
|
|
|
import * as route from '../src/route'
|
|
|
|
import * as serialize from '../src/serialize'
|
|
|
|
import * as task from '../src/task'
|
|
|
|
import * as timer from '../src/timer'
|
2019-04-11 10:04:21 +00:00
|
|
|
import * as cjs from '../src/cjs'
|
2019-01-29 19:23:42 +00:00
|
|
|
|
|
|
|
describe('util: entry', () => {
|
|
|
|
test('should export all methods from utils folder', () => {
|
|
|
|
expect(Util).toEqual({
|
|
|
|
...context,
|
|
|
|
...lang,
|
2019-03-03 08:12:46 +00:00
|
|
|
...locking,
|
2019-01-29 19:23:42 +00:00
|
|
|
...resolve,
|
|
|
|
...route,
|
|
|
|
...serialize,
|
|
|
|
...task,
|
2019-04-11 10:04:21 +00:00
|
|
|
...timer,
|
|
|
|
...cjs
|
2019-01-29 19:23:42 +00:00
|
|
|
})
|
|
|
|
})
|
|
|
|
})
|