Skip to content

Commit 629a55b

Browse files
committed
unread tests: Fix bogus flag name 'star' to 'starred'
This wasn't actually the name of any flag. We haven't previously written down in our API types what the set of expected flags actually is. When we do, Flow starts pointing out this discrepancy; so fix it first.
1 parent 4a95d6a commit 629a55b

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/unread/__tests__/unreadHuddlesReducer-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ describe('unreadHuddlesReducer', () => {
191191
all: false,
192192
allMessages: eg.makeMessagesState([]),
193193
messages: [1, 2, 3],
194-
flag: 'star',
194+
flag: 'starred',
195195
op: 'add',
196196
};
197197

src/unread/__tests__/unreadMentionsReducer-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ describe('unreadMentionsReducer', () => {
9797
all: false,
9898
allMessages: Immutable.Map(),
9999
messages: [1, 2, 3],
100-
flag: 'star',
100+
flag: 'starred',
101101
op: 'add',
102102
};
103103

src/unread/__tests__/unreadModel-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ describe('stream substate', () => {
294294
});
295295

296296
test('when operation is "add" but flag is not "read" do not mutate state', () => {
297-
const action = mkAction({ messages: [1, 2, 3], flag: 'star' });
297+
const action = mkAction({ messages: [1, 2, 3], flag: 'starred' });
298298
expect(reducer(initialState, action, eg.plusReduxState)).toBe(initialState);
299299
});
300300

src/unread/__tests__/unreadPmsReducer-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ describe('unreadPmsReducer', () => {
201201
all: false,
202202
allMessages: eg.makeMessagesState([]),
203203
messages: [1, 2, 3],
204-
flag: 'star',
204+
flag: 'starred',
205205
op: 'add',
206206
};
207207

0 commit comments

Comments
 (0)