UNPKG

646 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3var assert_1 = require("assert");
4var fs_1 = require("fs");
5exports.testFilePath = function (id) { return "./test-tmp/" + id + ".csv"; };
6exports.assertFile = function (path, expectedContents, encoding) {
7 var actualContents = fs_1.readFileSync(path, encoding || 'utf8');
8 assert_1.strictEqual(actualContents, expectedContents);
9};
10exports.assertRejected = function (p, message) {
11 return p.then(function () { return new Error('Should not have been called'); }, function (e) { assert_1.strictEqual(e.message, message); });
12};
13//# sourceMappingURL=helper.js.map
\No newline at end of file