forked from brendon1982/ts-mocking-exercises
-
Notifications
You must be signed in to change notification settings - Fork 0
/
07_use_it_all.test.ts
62 lines (54 loc) · 1.47 KB
/
07_use_it_all.test.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
61
62
import { describe, it, beforeEach, afterEach } from 'mocha'
import { default as sinon } from 'sinon'
import { expect } from 'chai'
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
})
})
})
})