Nuxt/test/index.test.js

15 lines
312 B
JavaScript
Raw Normal View History

2016-12-09 17:51:19 +00:00
import test from 'ava'
const Nuxt = require('../')
const nuxt = new Nuxt()
test('Nuxt.js Class', (t) => {
t.is(typeof Nuxt, 'function')
})
test('Nuxt.js Instance', (t) => {
t.is(typeof nuxt, 'object')
t.is(nuxt.dev, true)
t.is(typeof nuxt.build, 'function')
t.is(typeof nuxt.generate, 'function')
})