aboutsummaryrefslogtreecommitdiff
path: root/test/unit/specs/modules
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2019-03-08 22:40:57 +0200
committerHenry Jameson <me@hjkos.com>2019-03-08 22:40:57 +0200
commit4f3a220487c3c8b3596e5a8de7b65cc7c4f0c981 (patch)
tree585b89655e5156a464a9889ed44cc9c9ed693722 /test/unit/specs/modules
parent853e0bc26fc49c9f402fd482fb03082f32353485 (diff)
Since BE doesn't support fetching user by screen name over MastoAPI we'll gonna
just fetching it over QvitterAPI real quick :DDDDDDDDD
Diffstat (limited to 'test/unit/specs/modules')
-rw-r--r--test/unit/specs/modules/users.spec.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/unit/specs/modules/users.spec.js b/test/unit/specs/modules/users.spec.js
index 4d49ee24..dae7e580 100644
--- a/test/unit/specs/modules/users.spec.js
+++ b/test/unit/specs/modules/users.spec.js
@@ -43,7 +43,7 @@ describe('The users module', () => {
}
const name = 'Guy'
const expected = { screen_name: 'Guy', id: '1' }
- expect(getters.userByName(state)(name)).to.eql(expected)
+ expect(getters.findUser(state)(name)).to.eql(expected)
})
it('returns user with matching screen_name with different case', () => {
@@ -54,7 +54,7 @@ describe('The users module', () => {
}
const name = 'Guy'
const expected = { screen_name: 'guy', id: '1' }
- expect(getters.userByName(state)(name)).to.eql(expected)
+ expect(getters.findUser(state)(name)).to.eql(expected)
})
})
@@ -67,7 +67,7 @@ describe('The users module', () => {
}
const id = '1'
const expected = { screen_name: 'Guy', id: '1' }
- expect(getters.userById(state)(id)).to.eql(expected)
+ expect(getters.findUser(state)(id)).to.eql(expected)
})
})
})