incubed
Version:
Typescript-version of the incubed client
43 lines • 2.35 kB
JavaScript
"use strict";
/***********************************************************
* This file is part of the Slock.it IoT Layer. *
* The Slock.it IoT Layer contains: *
* - USN (Universal Sharing Network) *
* - INCUBED (Trustless INcentivized remote Node Network) *
************************************************************
* Copyright (C) 2016 - 2018 Slock.it GmbH *
* All Rights Reserved. *
************************************************************
* You may use, distribute and modify this code under the *
* terms of the license contract you have concluded with *
* Slock.it GmbH. *
* For information about liability, maintenance etc. also *
* refer to the contract concluded with Slock.it GmbH. *
************************************************************
* For more information, please refer to https://slock.it *
* For questions, please contact info@slock.it *
***********************************************************/
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
Object.defineProperty(exports, "__esModule", { value: true });
const chai_1 = require("chai");
require("mocha");
const fs_1 = require("fs");
const testRunner_1 = require("./util/testRunner");
const testDir = 'test/testdata';
describe('JSON-Tests', () => {
for (const f of fs_1.readdirSync(testDir)) {
it(f, () => __awaiter(this, void 0, void 0, function* () {
const all = yield testRunner_1.run_test([testDir + '/' + f], -1);
for (const r of all)
chai_1.assert.isTrue(r.success, r.c + ' : ' + r.descr + ' failed : ' + r.error);
}));
}
});
//# sourceMappingURL=jsontests.js.map