iut-hapi/test/index.js

24 lines
515 B
JavaScript
Raw Permalink Normal View History

2024-01-26 13:38:28 +00:00
'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();
});
});