Skip to content

Commit

Permalink
update tests to remove unnecessary placeholders
Browse files Browse the repository at this point in the history
  • Loading branch information
ryansolid committed May 25, 2019
1 parent 2f3706e commit b694c6b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/each.spec.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,9 @@ describe('Testing an only child each control flow with fragment children', () =>

function apply(array) {
list(array);
expect(div.innerHTML).toBe(array.map(p => `${p}<!--6-->${p}<!--7-->`).join(''));
expect(div.innerHTML).toBe(array.map(p => `${p}${p}`).join(''));
list([n1, n2, n3, n4])
expect(div.innerHTML).toBe('a<!--6-->a<!--7-->b<!--6-->b<!--7-->c<!--6-->c<!--7-->d<!--6-->d<!--7-->');
expect(div.innerHTML).toBe('aabbccdd');
}

test('Create each control flow', () => {
Expand All @@ -185,7 +185,7 @@ describe('Testing an only child each control flow with fragment children', () =>
<Component />
});

expect(div.innerHTML).toBe('a<!--6-->a<!--7-->b<!--6-->b<!--7-->c<!--6-->c<!--7-->d<!--6-->d<!--7-->');
expect(div.innerHTML).toBe('aabbccdd');
});

test('1 missing', () => {
Expand Down

0 comments on commit b694c6b

Please sign in to comment.