Skip to content

Commit e6c1a37

Browse files
author
alexperez
committed
fix: clean up whitespace and update expected result in ExampleGenerator tests
1 parent 0ca16cf commit e6c1a37

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/ExampleGenerator.test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -688,11 +688,11 @@ describe('ExampleGenerator', () => {
688688
assert.equal(root.querySelector('etag').textContent.trim(), 'W\\\\244m4n5kj3gbn2nj4k4n4', 'the etag value');
689689

690690
const image = root.querySelector('image');
691-
691+
692692
assert.ok(image, 'has the image node');
693693
assert.equal(image.querySelector('url').textContent.trim(), 'https://www.domain.com/people/Qawer63J73HJ6khjswuqyq62382jG21s/image', 'the image.url value');
694694
assert.equal(image.querySelector('thumb').textContent.trim(), 'https://www.domain.com/people/Qawer63J73HJ6khjswuqyq62382jG21s/image/thumb', 'the image.thumb value');
695-
695+
696696
assert.typeOf(ex2.raw, 'string', 'example 2 has the raw value');
697697
});
698698

@@ -2321,7 +2321,7 @@ describe('ExampleGenerator', () => {
23212321
schema = element._resolve(schema);
23222322
const result = element._computeJsonPropertyValue(schema);
23232323
assert.typeOf(result, 'object');
2324-
assert.deepEqual(result, { messages: [{ "referrers": [{"type": "Salesforce:Core:Bot:Id", "value": ""}], "sequenceId": 1, "text": "", "type": "init", "tz": "", "variables": [] }]})
2324+
assert.deepEqual(result, { messages: [{ "referrers": [{"type": "Salesforce:Core:Bot:Id", "value": ""}], "sequenceId": 1, "text": "", "type": "init", "tz": "", "variables": [{}] }]})
23252325
});
23262326
});
23272327
});
@@ -2525,7 +2525,7 @@ describe('ExampleGenerator', () => {
25252525
assert.typeOf(parsed, 'array', 'represents an array');
25262526
assert.lengthOf(parsed, 2, 'has 2 items');
25272527
const [e1, e2] = parsed;
2528-
2528+
25292529
assert.equal(e1.id, 1, 'has the example1.id');
25302530
assert.equal(e1.name, 'John', 'has the example1.name');
25312531
assert.equal(e2.id, 2, 'has the example2.id');

0 commit comments

Comments
 (0)