From 3fb3c98a1ebb60ba94fa0234599cabe134988763 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Mon, 7 Dec 2020 21:10:18 +0200 Subject: [PATCH] chore(package) v3.7.1 --- ChangeLog | 6 ++++++ lib/format.spec.js | 13 +++++++++++++ package.json | 2 +- 3 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 lib/format.spec.js diff --git a/ChangeLog b/ChangeLog index d8a8f39..0926380 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2020.12.07, v3.7.1 + +fix: +- (format) parseAt: no new lines + + 2020.12.07, v3.7.0 feature: diff --git a/lib/format.spec.js b/lib/format.spec.js new file mode 100644 index 0000000..dd68396 --- /dev/null +++ b/lib/format.spec.js @@ -0,0 +1,13 @@ +'use strict'; + +const test = require('./supertape'); +const {parseAt} = require('./format'); + +test('supertape: format', (t) => { + const stack = `Error: ENOENT: no such file or directory, open '/abc'`; + const result = parseAt(stack, {reason: 'user'}); + + t.equal(result, stack); + t.end(); +}); + diff --git a/package.json b/package.json index a856da1..6e56dfe 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "supertape", - "version": "3.7.0", + "version": "3.7.1", "author": "coderaiser (https://github.com/coderaiser)", "description": "tape compatible test runner with superpowers", "homepage": "http://github.com/coderaiser/supertape",