Skip to content

Commit b5199a2

Browse files
committed
Updating test typos
1 parent c44659b commit b5199a2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/jsonl.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ import {jsonl} from "../dist/tiny-jsonl.cjs";
33

44
describe("Testing functionality", function () {
55
it("It should handle an Object", function () {
6-
const jsonldObject = jsonl({"id": "test-123", "email": "[email protected]", "field1:field2": "d,e", "description": "this field has \"embed quotes\"", "object": {"abc": true, "def": false}, "array": ["ghi", 1234, "other string", {"nested": true}]});
6+
const jsonlObject = jsonl({"id": "test-123", "email": "[email protected]", "field1:field2": "d,e", "description": "this field has \"embed quotes\"", "object": {"abc": true, "def": false}, "array": ["ghi", 1234, "other string", {"nested": true}]});
77
const expectedResult = "{\"id\": \"test-123\", \"email\": \"[email protected]\", \"field1:field2\": \"d,e\", \"description\": \"this field has \\\"embed quotes\\\"\", \"object\": {\"abc\": true, \"def\": false}, \"array\": [\"ghi\", 1234, \"other string\", {\"nested\": true}]}";
8-
strictEqual(jsonldObject, expectedResult, "Should match the jsonld string");
8+
strictEqual(jsonlObject, expectedResult, "Should match the jsonl string");
99
});
1010

1111
it("It should handle an Array of Objects", function () {
12-
const jsonldObject = jsonl([{"id": "test-123", "email": "[email protected]"}, {"id": "test-456", "email": "[email protected]"}]);
12+
const jsonlObject = jsonl([{"id": "test-123", "email": "[email protected]"}, {"id": "test-456", "email": "[email protected]"}]);
1313
const expectedResult = "{\"id\": \"test-123\", \"email\": \"[email protected]\"}\n{\"id\": \"test-456\", \"email\": \"[email protected]\"}";
14-
strictEqual(jsonldObject, expectedResult, "Should match the jsonld string");
14+
strictEqual(jsonlObject, expectedResult, "Should match the jsonl string");
1515
});
1616

1717
it("It should throw a TypeError if receiving a String", function () {

0 commit comments

Comments
 (0)