-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy path07_use_it_all.spec.ts
60 lines (52 loc) · 1.43 KB
/
07_use_it_all.spec.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
import { describe, expect, it } from '@jest/globals'
import { ItemProcessor } from "../tests-to-implement/07_use_it_all"
describe('ItemProcessor', () => {
describe('processItems', () => {
it.skip('will not process items if processing is already busy', async () => {
// Arrange
// Act
// Assert
})
describe('given single unprocessed item', () => {
it.skip('updates the cache with the item', async () => {
// Arrange
// Act
// Assert
})
it.skip('publishes an item updated message', async () => {
// Arrange
// Act
// Assert
})
it.skip('does not process items that have already been processed', async () => {
// Arrange
// Act
// Assert
})
})
describe('given newly added unprocessed items', () => {
it.skip('processes all newly added items every x seconds', async () => {
// Arrange
// Act
// Assert
})
})
describe('given multiple unprocessed items', () => {
it.skip('updates the cache with the item', async () => {
// Arrange
// Act
// Assert
})
it.skip('publishes an item updated message', async () => {
// Arrange
// Act
// Assert
})
it.skip('does not process items that have already been processed', async () => {
// Arrange
// Act
// Assert
})
})
})
})