Files

Return to Package Diff Home.
Brought to you by Intrinsic.

Package Diff: tap @ 13.1.7 .. 13.1.8

lib/test.js

@@ -18,6 +18,7 @@
// block until its output is completed, dumping it all into the parser.
const {format, same, strict, match} = require('tcompare')
+const formatSnapshotDefault = obj => format(obj, { sort: true })
const Base = require('./base.js')
const Spawn = require('./spawn.js')
const Stdin = require('./stdin.js')
@@ -1232,7 +1233,7 @@
// use notOk because snap doesn't return a truthy value
const m = this.fullname + ' > ' + message
if (typeof found !== 'string')
- found = (this.formatSnapshot || format)(found)
+ found = (this.formatSnapshot || formatSnapshotDefault)(found)
found = this.cleanSnapshot(found)

package.json

@@ -1,6 +1,6 @@
{
"name": "tap",
- "version": "13.1.7",
+ "version": "13.1.8",
"author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me)",
"description": "A Test-Anything-Protocol library",
"homepage": "http://node-tap.org/",
@@ -47,7 +47,7 @@
"tap-mocha-reporter": "^4.0.1",
"tap-parser": "^9.3.2",
"tap-yaml": "^1.0.0",
- "tcompare": "^2.2.0",
+ "tcompare": "^2.3.0",
"treport": "^0.3.0",
"trivial-deferred": "^1.0.1",
"ts-node": "^8.1.0",