Skip to content

Commit efe6b54

Browse files
authored
Trim the inner text used to assert url value (#602)
1 parent 38c48dc commit efe6b54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/acceptance/anchors-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ test('Can create a link from the "Properties" tab', async function(assert) {
88
await visit('/ember/1.0/classes/Container/properties');
99
let [ element ] = findAll('.class-field-description--link');
1010
await click(element);
11-
assert.equal(currentURL(), `/ember/1.0/classes/Container/properties?anchor=${element.innerText}`);
11+
assert.equal(currentURL(), `/ember/1.0/classes/Container/properties?anchor=${element.innerText.trim()}`);
1212
});

0 commit comments

Comments
 (0)