Skip to content

Commit

Permalink
add aaa pattren
Browse files Browse the repository at this point in the history
  • Loading branch information
ZuhRa-HashiMi committed Dec 3, 2022
1 parent a0684da commit 6236861
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/_test_/itemsCounter.test.js
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);
});
});

0 comments on commit 6236861

Please sign in to comment.