20 lines
494 B
JavaScript
20 lines
494 B
JavaScript
|
import changeme from '../src/changeme'
|
||
|
import path from 'path'
|
||
|
import chai from 'chai'
|
||
|
import chaiAsPromised from 'chai-as-promised'
|
||
|
|
||
|
const { assert } = chai;
|
||
|
chai.use(chaiAsPromised);
|
||
|
|
||
|
const expect = chai.expect
|
||
|
|
||
|
describe('Promise Stuff - ', function () {
|
||
|
|
||
|
it('Can test a promise', function () {
|
||
|
|
||
|
return expect(changeme.apromise).to.eventually.equal('some promise hey')
|
||
|
return Promise.resolve().then(() => expect(changeme.apromise).to.eventually.equal('some promise hey'))
|
||
|
|
||
|
})
|
||
|
})
|