aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2019-01-22 19:58:59 +0300
committerHenry Jameson <me@hjkos.com>2019-01-22 19:58:59 +0300
commitd405bfe6deb79b4079965c1118a734b96fc20a09 (patch)
tree19c4ee504dcac0cdfd6ca44eaa2d7195c2a15da2
parent42f8d01b66d68e492f00b9f1480692769b830e06 (diff)
update test names
-rw-r--r--test/unit/specs/services/entity_normalizer/entity_normalizer.spec.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/test/unit/specs/services/entity_normalizer/entity_normalizer.spec.js b/test/unit/specs/services/entity_normalizer/entity_normalizer.spec.js
index bc127f79..703fecf1 100644
--- a/test/unit/specs/services/entity_normalizer/entity_normalizer.spec.js
+++ b/test/unit/specs/services/entity_normalizer/entity_normalizer.spec.js
@@ -149,8 +149,8 @@ parseStatus
makeMockStatusQvitter
makeMockUserQvitter
-describe.only('API Entities normalizer', () => {
- describe('statuses', () => {
+describe('API Entities normalizer', () => {
+ describe('parseStatus', () => {
describe('QVitter preprocessing', () => {
it('doesn\'t blow up', () => {
const parsed = qvitterapidata.map(parseStatus)
@@ -220,8 +220,9 @@ describe.only('API Entities normalizer', () => {
})
})
})
+
// Statuses generally already contain some info regarding users and there's nearly 1:1 mapping, so very little to test
- describe('users (MastoAPI)', () => {
+ describe('parseUsers (MastoAPI)', () => {
it('sets correct is_local for users depending on their screen_name', () => {
const local = makeMockUserMasto({ acct: 'foo' })
const remote = makeMockUserMasto({ acct: 'foo@bar.baz' })
@@ -233,7 +234,7 @@ describe.only('API Entities normalizer', () => {
// We currently use QvitterAPI notifications only, and especially due to MastoAPI lacking is_seen, support for MastoAPI
// is more of an afterthought
- describe('notifications (QvitterAPI)', () => {
+ describe('parseNotifications (QvitterAPI)', () => {
it('correctly normalizes data to FE\'s format', () => {
const notif = makeMockNotificationQvitter({
id: 123,