Make valid-i18n-keys rule strict and fix most exceptions
This commit is contained in:
parent
18a6da310f
commit
11cfcb4e32
36 changed files with 796 additions and 687 deletions
|
@ -3,7 +3,7 @@
|
|||
|
||||
import { assert } from 'chai';
|
||||
import * as sinon from 'sinon';
|
||||
import { RowType } from '../../../components/ConversationList';
|
||||
import { RowType, _testHeaderText } from '../../../components/ConversationList';
|
||||
import { FindDirection } from '../../../components/leftPane/LeftPaneHelper';
|
||||
import { getDefaultConversation } from '../../../test-both/helpers/getDefaultConversation';
|
||||
|
||||
|
@ -339,10 +339,7 @@ describe('LeftPaneInboxHelper', () => {
|
|||
pinnedConversations,
|
||||
});
|
||||
|
||||
assert.deepEqual(helper.getRow(0), {
|
||||
type: RowType.Header,
|
||||
i18nKey: 'LeftPane--pinned',
|
||||
});
|
||||
assert.deepEqual(_testHeaderText(helper.getRow(0)), 'LeftPane--pinned');
|
||||
assert.deepEqual(helper.getRow(1), {
|
||||
type: RowType.Conversation,
|
||||
conversation: pinnedConversations[0],
|
||||
|
@ -351,10 +348,7 @@ describe('LeftPaneInboxHelper', () => {
|
|||
type: RowType.Conversation,
|
||||
conversation: pinnedConversations[1],
|
||||
});
|
||||
assert.deepEqual(helper.getRow(3), {
|
||||
type: RowType.Header,
|
||||
i18nKey: 'LeftPane--chats',
|
||||
});
|
||||
assert.deepEqual(_testHeaderText(helper.getRow(3)), 'LeftPane--chats');
|
||||
assert.deepEqual(helper.getRow(4), {
|
||||
type: RowType.Conversation,
|
||||
conversation: conversations[0],
|
||||
|
@ -388,10 +382,7 @@ describe('LeftPaneInboxHelper', () => {
|
|||
archivedConversations: [getDefaultConversation()],
|
||||
});
|
||||
|
||||
assert.deepEqual(helper.getRow(0), {
|
||||
type: RowType.Header,
|
||||
i18nKey: 'LeftPane--pinned',
|
||||
});
|
||||
assert.deepEqual(_testHeaderText(helper.getRow(0)), 'LeftPane--pinned');
|
||||
assert.deepEqual(helper.getRow(1), {
|
||||
type: RowType.Conversation,
|
||||
conversation: pinnedConversations[0],
|
||||
|
@ -400,10 +391,7 @@ describe('LeftPaneInboxHelper', () => {
|
|||
type: RowType.Conversation,
|
||||
conversation: pinnedConversations[1],
|
||||
});
|
||||
assert.deepEqual(helper.getRow(3), {
|
||||
type: RowType.Header,
|
||||
i18nKey: 'LeftPane--chats',
|
||||
});
|
||||
assert.deepEqual(_testHeaderText(helper.getRow(3)), 'LeftPane--chats');
|
||||
assert.deepEqual(helper.getRow(4), {
|
||||
type: RowType.Conversation,
|
||||
conversation: conversations[0],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue