0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-04-15 03:01:37 -05:00

Added basic test checking module API

This commit is contained in:
Naz 2020-11-05 16:39:51 +13:00
parent 84fa9ce4f0
commit 8c24e093d3
2 changed files with 13 additions and 10 deletions

View file

@ -1,10 +0,0 @@
// Switch these lines once there are useful utils
// const testUtils = require('./utils');
require('./utils');
describe('Hello world', function () {
it('Runs a test', function () {
// TODO: Write me!
'hello'.should.eql('hello');
});
});

View file

@ -0,0 +1,13 @@
// Switch these lines once there are useful utils
// const testUtils = require('./utils');
require('./utils');
const JobManager = new require('../index');
describe('Job Manager', function () {
it('public interface', function () {
const jobManager = new JobManager();
should.exist(jobManager.addJob);
});
});