UNPKG

1.32 kBJavaScriptView Raw
1#!/usr/bin/env ts-node
2"use strict";
3var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
4 function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
5 return new (P || (P = Promise))(function (resolve, reject) {
6 function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
7 function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
8 function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
9 step((generator = generator.apply(thisArg, _arguments || [])).next());
10 });
11};
12var __importDefault = (this && this.__importDefault) || function (mod) {
13 return (mod && mod.__esModule) ? mod : { "default": mod };
14};
15Object.defineProperty(exports, "__esModule", { value: true });
16// tslint:disable:no-shadowed-variable
17const _1 = __importDefault(require("./"));
18const version_1 = require("./version");
19_1.default('Make sure the VERSION is fresh in source code', (t) => __awaiter(void 0, void 0, void 0, function* () {
20 t.equal(version_1.VERSION, '0.0.0', 'version should be 0.0.0 in source code, only updated before publish to NPM');
21}));
22//# sourceMappingURL=version.spec.js.map
\No newline at end of file