8000 list() methode added · vanioinformatika/node-appstate@fb295b0 · GitHub
[go: up one dir, main page]

Skip to content

Commit fb295b0

Browse files
committed
list() methode added
1 parent 035b4a3 commit fb295b0

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

appState.spec.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,4 +89,15 @@ describe('appState', () => {
8989
appState.error()
9090
appState.isError().should.be.true()
9191
})
92+
93+
it('list state values', () => {
94+
const appState = require('./appState')()
95+
appState.error()
96+
appState.list().should.be.eql({
97+
INIT: 'INIT',
98+
RUNNING: 'RUNNING',
99+
ERROR: 'ERROR',
100+
STOPPED: 'STOPPED'
101+
})
102+
})
92103
})

0 commit comments

Comments
 (0)
0