Nuxt/test/index.test.js
Sébastien Chopin 5fc338e6b2 Add tests
2016-12-09 18:51:19 +01:00

15 lines
312 B
JavaScript

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')
})