UNPKG

989 BJavaScriptView Raw
1#!/usr/bin/env ts-node
2var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3 return new (P || (P = Promise))(function (resolve, reject) {
4 function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5 function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6 function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
7 step((generator = generator.apply(thisArg, _arguments || [])).next());
8 });
9};
10// tslint:disable:no-shadowed-variable
11import test from 'tstest';
12import { VERSION } from './version';
13test('Make sure the VERSION is fresh in source code', (t) => __awaiter(this, void 0, void 0, function* () {
14 t.equal(VERSION, '0.0.0', 'version should be 0.0.0 in source code, only updated before publish to NPM');
15}));
16//# sourceMappingURL=version.spec.js.map
\No newline at end of file