coz-bud-loader
Version:
Bud loader for coz.
21 lines (17 loc) • 461 B
JavaScript
/**
* Test case for evaluateBud.
* Runs with mocha.
*/
const evaluateBud = require('../lib/evaluate_bud.js')
const assert = require('assert')
describe('Evaluate bud', () => {
it('Evaluate bud', async () => {
let evaluated = await evaluateBud([
() => Promise.resolve({ foo: 'bar' }),
{ hoge: 'fuge' }
])
assert.deepEqual(evaluated, [{ foo: 'bar' }, { hoge: 'fuge' }])
})
})
/* global describe, before, after, it */