UNPKG

1.45 kBJavaScriptView Raw
1#!/usr/bin/env ts-node
2"use strict";
3var __importDefault = (this && this.__importDefault) || function (mod) {
4 return (mod && mod.__esModule) ? mod : { "default": mod };
5};
6Object.defineProperty(exports, "__esModule", { value: true });
7/**
8 * Wechaty Chatbot SDK - https://github.com/wechaty/wechaty
9 *
10 * @copyright 2016 Huan LI (李卓桓) <https://github.com/huan>, and
11 * Wechaty Contributors <https://github.com/wechaty>.
12 *
13 * Licensed under the Apache License, Version 2.0 (the "License");
14 * you may not use this file except in compliance with the License.
15 * You may obtain a copy of the License at
16 *
17 * http://www.apache.org/licenses/LICENSE-2.0
18 *
19 * Unless required by applicable law or agreed to in writing, software
20 * distributed under the License is distributed on an "AS IS" BASIS,
21 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22 * See the License for the specific language governing permissions and
23 * limitations under the License.
24 *
25 */
26const tstest_1 = __importDefault(require("tstest"));
27const version_1 = require("./version");
28tstest_1.default('Make sure the VERSION is fresh in source code', async (t) => {
29 t.equal(version_1.VERSION, '0.0.0', 'version should be 0.0.0 in source code, only updated before publish to NPM');
30 t.equal(version_1.GIT_COMMIT_HASH, '', 'git commit hash should be empty');
31});
32//# sourceMappingURL=version.spec.js.map
\No newline at end of file