UNPKG

@jitterbox/flywaydb-cli

Version:

Install latest flywaydb-cli as a node module (forked from github.com/sgraham785/flywaydb-cli)

14 lines (11 loc) 461 B
import test from 'ava' import sinon from 'sinon' import rewire from 'rewire' let utils = rewire('../src/utils') test('no source arg error', async t => { let downloadFlywaySource = sinon.spy(utils.__get__('downloadFlywaySource')) const reason = await t.throws(() => { downloadFlywaySource() }) t.is(reason.toString(), 'Error: Your platform is not supported') }) test.todo('source.filename exists') test.todo('source.filename does not exit')