Skip to content

Commit 6998866

Browse files
committed
test(vuex-filter): add test for vuex state search
1 parent 3cd9498 commit 6998866

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

test/specs/test.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,14 @@ module.exports = {
7878
.assert.cssClassPresent('.history .entry:nth-child(4)', 'inspected')
7979
.assert.cssClassPresent('.history .entry:nth-child(4)', 'active')
8080

81-
// filtering
81+
// filtering state & getters
82+
.setValue('.right .search input', 'cou')
83+
.assert.count('.data-field', 1)
84+
.setValue('.right .search input', 'no value')
85+
.assert.count('.data-field', 0)
86+
.clearValue('.right .search input')
87+
88+
// filtering history
8289
.setValue('.search input', 'inc')
8390
.assert.count('.history .entry', 3)
8491
.assert.count('.history .entry.inspected', 0)

0 commit comments

Comments
 (0)