1
0
Fork 0

fix(plugin-i18n): Fixes after translation changes

This commit is contained in:
Joost De Cock 2023-07-04 20:28:09 +02:00
parent 598463f0a0
commit 64f75a54d2
2 changed files with 6 additions and 7 deletions

View file

@ -5,10 +5,8 @@ import { plugin } from '../src/index.mjs'
const expect = chai.expect
const content = {
strings: {
en: {
testString: 'This is a test string for the i18n plugin',
},
en: {
testString: 'This is a test string for the i18n plugin',
},
}
@ -31,6 +29,6 @@ describe('I18n Plugin Tests', () => {
const Pattern = new Design({ parts: [part] })
const pattern = new Pattern()
const svg = pattern.draft().render()
expect(svg).to.contain(content.strings.en.testString)
expect(svg).to.contain(content.en.testString)
})
})