24 lines
515 B
JavaScript
24 lines
515 B
JavaScript
'use strict';
|
|
|
|
// Load modules
|
|
|
|
const Code = require('@hapi/code');
|
|
const Lab = require('@hapi/lab');
|
|
const Server = require('../server');
|
|
const Package = require('../package.json');
|
|
|
|
// Test shortcuts
|
|
|
|
const { describe, it } = exports.lab = Lab.script();
|
|
const { expect } = Code;
|
|
|
|
describe('Deployment', () => {
|
|
|
|
it('registers the main plugin.', async () => {
|
|
|
|
const server = await Server.deployment();
|
|
|
|
expect(server.registrations[Package.name]).to.exist();
|
|
});
|
|
});
|