UNPKG

carthage

Version:

An API Server and Framework with scaffold functions for node.js

31 lines (16 loc) 398 B
'use strict'; const Carthage = require('carthage'); class ExampleTest extends Carthage.mocha.Test { test(expect) { it('Should compare 1 and 1', () => { expect(1).to.equal(1); }); it('Should add 1 and 1, asynchronously', done => { setTimeout(() => { expect(1 + 1).to.equal(2); done(); }, 10); }); } } module.exports = ExampleTest;