-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a0684da
commit 6236861
Showing
1 changed file
with
7 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
import ItemsCounter from '../_mock_/itemsCounter.js'; | ||
|
||
// test for pagination | ||
describe('return the lengty of array', () => { | ||
test('return the lengty of array', () => { | ||
const items = [1, 2, 3, 4, 5]; | ||
describe('return the lengty of array zuhra', () => { | ||
test('return the lengty of array zuhra', () => { | ||
// Arrange | ||
const items = [1, 2, 3, 4, 5, 6]; | ||
// ACT | ||
const itemsCounter = new ItemsCounter(items); | ||
expect(itemsCounter.getLength()).toBe(5); | ||
// Assert | ||
expect(itemsCounter.getLength()).toBe(6); | ||
}); | ||
}); |