Skip to content
This repository has been archived by the owner on Mar 8, 2020. It is now read-only.

Commit

Permalink
fix fragment tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ryansolid committed Mar 19, 2019
1 parent 35a18ba commit 02baafa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/runtime/each.spec.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,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}${p}`).join(''));
expect(div.innerHTML).toBe(array.map(p => `${p}<!--6-->${p}<!--7-->`).join(''));
list([n1, n2, n3, n4])
expect(div.innerHTML).toBe('aabbccdd');
expect(div.innerHTML).toBe('a<!--6-->a<!--7-->b<!--6-->b<!--7-->c<!--6-->c<!--7-->d<!--6-->d<!--7-->');
}

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

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

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

0 comments on commit 02baafa

Please sign in to comment.