Skip to content

Commit 7fa6776

Browse files
authored
Action cleanup part 1: Cleanup util/saga (keybase#13046)
* small pieces * Action cleanup part 2: Devices (keybase#13047) * devices cleanup * WIP * pr feedback
1 parent d511f5c commit 7fa6776

120 files changed

Lines changed: 5957 additions & 3319 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎protocol/bin/enabled-calls.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
"keybase.1.login.getConfiguredAccounts": {"promise": true},
104104
"keybase.1.login.login": {"engineSaga": true},
105105
"keybase.1.login.logout": {"promise": true},
106-
"keybase.1.login.paperKey": {"channelMap": true},
106+
"keybase.1.login.paperKey": {"engineSaga": true},
107107
"keybase.1.login.paperKeySubmit": {"promise": true},
108108
"keybase.1.notifyCtl.setNotifications": {"promise": true},
109109
"keybase.1.pgp.pgpKeyGenDefault": {"channelMap": true},

‎protocol/js/rpc-gen.js‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎shared/__mocks__/saga.js‎

Lines changed: 24 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,37 +2,42 @@
22
if (!__STORYBOOK__) {
33
throw new Error('Invalid load of mock')
44
}
5-
const mocks = {
6-
all: () => {},
5+
6+
const reduxSaga = {
77
buffers: () => {},
8+
channel: () => {},
9+
delay: () => {},
10+
}
11+
12+
const effects = {
13+
all: () => {},
814
call: () => {},
9-
callAndWrap: () => {},
1015
cancel: () => {},
11-
cancelWhen: () => {},
1216
cancelled: () => {},
13-
channel: () => {},
14-
closeChannelMap: () => {},
15-
createChannelMap: () => {},
16-
delay: () => {},
17-
effectOnChannelMap: () => {},
1817
fork: () => {},
19-
identity: () => {},
2018
join: () => {},
21-
mapSagasToChanMap: () => {},
2219
put: () => {},
23-
putOnChannelMap: () => {},
2420
race: () => {},
21+
select: () => {},
22+
spawn: () => {},
23+
take: () => {},
24+
takeEvery: () => {},
25+
takeLatest: () => {},
26+
throttle: () => {},
27+
}
28+
29+
const mocks = {
30+
...reduxSaga,
31+
...effects,
32+
actionToAction: () => {},
33+
actionToPromise: () => {},
34+
callAndWrap: () => {},
35+
identity: () => {},
2536
safeTakeEvery: () => {},
2637
safeTakeEveryPure: () => {},
2738
safeTakeLatest: () => {},
2839
safeTakeLatestPure: () => {},
29-
safeTakeLatestWithCatch: () => {},
30-
safeTakeSerially: () => {},
31-
select: () => {},
3240
sequentially: () => {},
33-
singleFixedChannelConfig: () => {},
34-
spawn: () => {},
35-
take: () => {},
36-
takeFromChannelMap: () => {},
3741
}
42+
3843
export default mocks

0 commit comments

Comments
 (0)