From ffa661db5e0f19ef0121a606efbb855d5fbabd14 Mon Sep 17 00:00:00 2001 From: Kevin Phillips Date: Fri, 6 Oct 2017 10:44:19 -0500 Subject: [PATCH] Fixing spelling of malformed --- can-ndjson-stream-test.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/can-ndjson-stream-test.js b/can-ndjson-stream-test.js index 47d017d..4f7e626 100644 --- a/can-ndjson-stream-test.js +++ b/can-ndjson-stream-test.js @@ -86,10 +86,10 @@ conditionalAsyncTest('simple_test_from_stream', function(assert) { test(todoStream); }); -conditionalAsyncTest('maleformed json', function(assert) { - var maleformed_string = "{\"1\":2}\n{sss: 2}"; +conditionalAsyncTest('malformed json', function(assert) { + var malformed_string = "{\"1\":2}\n{sss: 2}"; var readObjects = []; - var todoStream = ndjsonStream( readableStreamFromString(maleformed_string) ); + var todoStream = ndjsonStream( readableStreamFromString(malformed_string) ); var reader = todoStream.getReader(); var errorCaught = false; function errCheck() { @@ -105,10 +105,10 @@ conditionalAsyncTest('maleformed json', function(assert) { }, errCheck); allDone.then(function(){ - assert.strictEqual(errorCaught, true, "maleformed json string should cause an error"); + assert.strictEqual(errorCaught, true, "malformed json string should cause an error"); QUnit.start(); }, function(){ - assert.strictEqual(errorCaught, true, "rejected: maleformed json string should cause an error"); + assert.strictEqual(errorCaught, true, "rejected: malformed json string should cause an error"); QUnit.start(); });