eslintify all test files
This commit is contained in:
parent
884bc9333d
commit
dbf0be2db5
44 changed files with 1469 additions and 1484 deletions
|
@ -1,16 +1,18 @@
|
|||
describe('i18n', function() {
|
||||
describe('i18n', function() {
|
||||
it('returns empty string for unknown string', function() {
|
||||
/* global i18n */
|
||||
|
||||
describe('i18n', () => {
|
||||
describe('i18n', () => {
|
||||
it('returns empty string for unknown string', () => {
|
||||
assert.strictEqual(i18n('random'), '');
|
||||
});
|
||||
it('returns message for given string', function() {
|
||||
it('returns message for given string', () => {
|
||||
assert.equal(i18n('reportIssue'), 'Report an issue');
|
||||
});
|
||||
it('returns message with single substitution', function() {
|
||||
it('returns message with single substitution', () => {
|
||||
const actual = i18n('attemptingReconnection', 5);
|
||||
assert.equal(actual, 'Attempting reconnect in 5 seconds');
|
||||
});
|
||||
it('returns message with multiple substitutions', function() {
|
||||
it('returns message with multiple substitutions', () => {
|
||||
const actual = i18n('theyChangedTheTimer', ['Someone', '5 minutes']);
|
||||
assert.equal(
|
||||
actual,
|
||||
|
@ -19,8 +21,8 @@ describe('i18n', function() {
|
|||
});
|
||||
});
|
||||
|
||||
describe('getLocale', function() {
|
||||
it('returns a string with length two or greater', function() {
|
||||
describe('getLocale', () => {
|
||||
it('returns a string with length two or greater', () => {
|
||||
const locale = i18n.getLocale();
|
||||
assert.isAtLeast(locale.trim().length, 2);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue