chore: Linter issues
This commit is contained in:
parent
a1b06949a3
commit
66a4524eca
2 changed files with 3 additions and 3 deletions
|
@ -101,7 +101,7 @@ export const testPatternConfig = (Pattern) => {
|
||||||
}).draft()
|
}).draft()
|
||||||
|
|
||||||
const missWarnings = draft.setStores[0].logs.warning.filter((w, i, a) => {
|
const missWarnings = draft.setStores[0].logs.warning.filter((w, i, a) => {
|
||||||
return w.match(/tried to access \`measurements/) && a.indexOf(w) === i
|
return w.match(/tried to access `measurements/) && a.indexOf(w) === i
|
||||||
})
|
})
|
||||||
chai.assert(
|
chai.assert(
|
||||||
missWarnings.length === 0,
|
missWarnings.length === 0,
|
||||||
|
|
|
@ -35,7 +35,7 @@ export const testPatternI18n = (Pattern, i18n) => {
|
||||||
it(` - The parts (p) object should exist`, () => {
|
it(` - The parts (p) object should exist`, () => {
|
||||||
expect(typeof i18n.en.p).to.equal('object')
|
expect(typeof i18n.en.p).to.equal('object')
|
||||||
})
|
})
|
||||||
for (const [key, val] of Object.entries(i18n.en.p)) {
|
for (const key of Object.keys(i18n.en.p)) {
|
||||||
it(` - The translation of p.${key} should be a non-empty string`, () => {
|
it(` - The translation of p.${key} should be a non-empty string`, () => {
|
||||||
expect(typeof i18n.en.p[key]).to.equal('string')
|
expect(typeof i18n.en.p[key]).to.equal('string')
|
||||||
expect(i18n.en.p[key].length).to.be.above(1)
|
expect(i18n.en.p[key].length).to.be.above(1)
|
||||||
|
@ -52,7 +52,7 @@ export const testPatternI18n = (Pattern, i18n) => {
|
||||||
it(` - The options (o) object should exist`, () => {
|
it(` - The options (o) object should exist`, () => {
|
||||||
expect(typeof i18n.en.o).to.equal('object')
|
expect(typeof i18n.en.o).to.equal('object')
|
||||||
})
|
})
|
||||||
for (const [key, val] of Object.entries(i18n.en.o)) {
|
for (const key of Object.keys(i18n.en.o)) {
|
||||||
it(` - The translation of o.${key}.t should be a non-empty string`, () => {
|
it(` - The translation of o.${key}.t should be a non-empty string`, () => {
|
||||||
expect(typeof i18n.en.o[key].t).to.equal('string')
|
expect(typeof i18n.en.o[key].t).to.equal('string')
|
||||||
expect(i18n.en.o[key].t.length).to.be.above(1)
|
expect(i18n.en.o[key].t.length).to.be.above(1)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue