statigen
Version:
A static site generator that supports html, ejs, and markdown source files
18 lines • 969 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
const chai_1 = require("chai");
const InitCommand_1 = require("./InitCommand");
const testHelpers_spec_1 = require("./testHelpers.spec");
const fsExtra = require("fs-extra");
const semver = require("semver");
describe('init command', () => {
it('initializes with the very latest version of statigen', function test() {
this.timeout(20000);
const cmd = new InitCommand_1.InitCommand();
cmd.run({ path: testHelpers_spec_1.tempDir });
const statigenVersion = fsExtra.readJsonSync(`${testHelpers_spec_1.tempDir}/package.json`).dependencies['statigen'].replace('^', '');
// our test can't really know what the latest version of statigen is, so just make sure we put in a valid semantic version in the package.json
(0, chai_1.expect)(semver.valid(statigenVersion)).to.eql(statigenVersion);
});
});
//# sourceMappingURL=InitCommand.spec.js.map
;