mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-14 10:04:05 +00:00
9b8cbed512
Using native node 8.x for less transpilations
15 lines
458 B
JavaScript
15 lines
458 B
JavaScript
import test from 'ava'
|
|
import { resolve } from 'path'
|
|
import { Nuxt, Options } from '..'
|
|
import { version } from '../package.json'
|
|
|
|
test('Nuxt.version is same as package', t => {
|
|
t.is(Nuxt.version, version)
|
|
})
|
|
|
|
test('modulesDir uses /node_modules as default if not set', async t => {
|
|
const options = Options.from({})
|
|
const currentNodeModulesDir = resolve(__dirname, '..', 'node_modules')
|
|
t.true(options.modulesDir.includes(currentNodeModulesDir))
|
|
})
|