1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | var assert_1 = require("assert");
|
4 | var fs_1 = require("fs");
|
5 | exports.testFilePath = function (id) { return "./test-tmp/" + id + ".csv"; };
|
6 | exports.assertFile = function (path, expectedContents, encoding) {
|
7 | var actualContents = fs_1.readFileSync(path, encoding || 'utf8');
|
8 | assert_1.strictEqual(actualContents, expectedContents);
|
9 | };
|
10 | exports.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 |
|
\ | No newline at end of file |