forked from brendon1982/ts-mocking-exercises
-
Notifications
You must be signed in to change notification settings - Fork 0
/
07_use_it_all.jasmine.ts
59 lines (51 loc) · 1.35 KB
/
07_use_it_all.jasmine.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
import { ItemProcessor } from "../tests-to-implement/07_use_it_all"
describe('ItemProcessor', () => {
describe('processItems', () => {
xit('will not process items if processing is already busy', async () => {
// Arrange
// Act
// Assert
})
describe('given single unprocessed item', () => {
xit('updates the cache with the item', async () => {
// Arrange
// Act
// Assert
})
xit('publishes an item updated message', async () => {
// Arrange
// Act
// Assert
})
xit('does not process items that have already been processed', async () => {
// Arrange
// Act
// Assert
})
})
describe('given newly added unprocessed items', () => {
xit('processes all newly added items every x seconds', async () => {
// Arrange
// Act
// Assert
})
})
describe('given multiple unprocessed items', () => {
xit('updates the cache with the item', async () => {
// Arrange
// Act
// Assert
})
xit('publishes an item updated message', async () => {
// Arrange
// Act
// Assert
})
xit('does not process items that have already been processed', async () => {
// Arrange
// Act
// Assert
})
})
})
})