You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
436 B
24 lines
436 B
8 years ago
|
import test from 'ava';
|
||
|
import { validate } from 'webpack';
|
||
8 years ago
|
import { Neutrino } from 'neutrino';
|
||
8 years ago
|
|
||
|
test('loads preset', t => {
|
||
|
t.notThrows(() => require('..'));
|
||
|
});
|
||
|
|
||
|
test('uses preset', t => {
|
||
8 years ago
|
const api = Neutrino();
|
||
8 years ago
|
|
||
|
t.notThrows(() => api.use(require('..')));
|
||
|
});
|
||
|
|
||
|
test('valid preset', t => {
|
||
8 years ago
|
const api = Neutrino();
|
||
8 years ago
|
|
||
|
api.use(require('..'));
|
||
|
|
||
8 years ago
|
const errors = validate(api.config.toConfig());
|
||
8 years ago
|
|
||
|
t.is(errors.length, 0);
|
||
|
});
|