mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 16:43:55 +00:00
17 lines
460 B
JavaScript
17 lines
460 B
JavaScript
import { resolve } from 'path'
|
|
|
|
import test from 'ava'
|
|
|
|
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))
|
|
})
|