text: 'use strict';
  
  const tap = require('tap');
  const expect = require('expect.js');
  const testUtils = require('../../../../../../testUtils');
  
  tap.mochaGlobals();
  
  const describeTitle = 'bin/east migrate without migrations';
  
  describe(describeTitle, () => {
  	let commandResult;
  	let testEnv;
  
  	before(() => {
  		return Promise.resolve()
  			.then(() => testUtils.createEnv({migratorParams: {init: true}}))
  			.then((createdTestEnv) => {
  				testEnv = createdTestEnv;
  			});
  	});
  
  	after(() => testUtils.destroyEnv(testEnv));
  
  	it('should be done without error', () => {
  		return Promise.resolve()
  			.then(() => {
  				const binPath = testUtils.getBinPath('east');
  
  				return testUtils.execAsync(
  					`"${binPath}" migrate`,
  					{cwd: testEnv.dir}
  				);
  			})
  			.then((result) => {
  				expect(result.stderr).not.ok();
  
  				commandResult = result;
  			});
  	});
  
  	it('stdout should match expected snapshot', () => {
  		tap.matchSnapshot(
  			testUtils.cleanSnapshotData(commandResult.stdout),
  			'output'
  		);
  	});
  });
  