@juzi/wechaty
Version:
Wechaty is a RPA SDK for Chatbot Makers.
17 lines • 739 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const tstest_1 = require("tstest");
const package_json_js_1 = require("./package-json.js");
(0, tstest_1.test)('Make sure the packageJson is fresh in source code', async (t) => {
const json = JSON.parse(JSON.stringify(package_json_js_1.packageJson));
/**
* Delete test data (keys), which will
* be overwrite
* by the real data before deploy
*/
delete json['wechaty'];
const keyNum = Object.keys(json).length;
t.equal(keyNum, 0, 'packageJson should be empty in source code, only updated before publish to NPM');
});
//# sourceMappingURL=package-json.spec.js.map