Nuxt/packages/utils/test/index.test.js

27 lines
671 B
JavaScript
Raw Normal View History

import * as Util from '../src'
import * as context from '../src/context'
import * as lang from '../src/lang'
import * as locking from '../src/locking'
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-15 16:13:27 +00:00
import * as cjs from '../src/cjs'
describe('util: entry', () => {
test('should export all methods from utils folder', () => {
expect(Util).toEqual({
...context,
...lang,
...locking,
...resolve,
...route,
...serialize,
...task,
2019-04-15 16:13:27 +00:00
...timer,
...cjs
})
})
})