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:
parent
84fa9ce4f0
commit
8c24e093d3
2 changed files with 13 additions and 10 deletions
|
@ -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');
|
||||
});
|
||||
});
|
13
ghost/job-manager/test/job-manager.test.js
Normal file
13
ghost/job-manager/test/job-manager.test.js
Normal 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);
|
||||
});
|
||||
});
|
Loading…
Add table
Reference in a new issue