@lion/localize
Advanced tools
Comparing version 0.4.3 to 0.4.4
@@ -6,2 +6,10 @@ # Change Log | ||
## [0.4.4](https://github.com/ing-bank/lion/compare/@lion/localize@0.4.3...@lion/localize@0.4.4) (2019-07-18) | ||
**Note:** Version bump only for package @lion/localize | ||
## [0.4.3](https://github.com/ing-bank/lion/compare/@lion/localize@0.4.2...@lion/localize@0.4.3) (2019-07-15) | ||
@@ -8,0 +16,0 @@ |
{ | ||
"name": "@lion/localize", | ||
"version": "0.4.3", | ||
"version": "0.4.4", | ||
"description": "The localization system helps to manage localization data split into locales and automate its loading", | ||
@@ -44,3 +44,3 @@ "author": "ing-bank", | ||
}, | ||
"gitHead": "482bcbeaeda6aa9c931327883b894f442cb23d05" | ||
"gitHead": "09d47944601e362d90806af829af47f900bdeced" | ||
} |
@@ -5,4 +5,6 @@ import { localize } from './src/localize.js'; | ||
// makes sure that between tests the localization is reset to default state | ||
localize._teardownHtmlLangAttributeObserver(); | ||
document.documentElement.lang = 'en-GB'; | ||
localize._setupHtmlLangAttributeObserver(); | ||
localize.reset(); | ||
}; |
@@ -21,16 +21,10 @@ import { | ||
import { localize } from '../src/localize.js'; | ||
import { localizeTearDown } from '../test-helpers.js'; | ||
import { LocalizeMixin } from '../src/LocalizeMixin.js'; | ||
const reset = () => { | ||
resetFakeImport(); | ||
// makes sure that between tests the localization is reset to default state | ||
document.documentElement.lang = 'en-GB'; | ||
localize.reset(); | ||
}; | ||
describe('LocalizeMixin', () => { | ||
reset(); | ||
afterEach(async () => { | ||
reset(); | ||
afterEach(() => { | ||
resetFakeImport(); | ||
localizeTearDown(); | ||
}); | ||
@@ -37,0 +31,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
137118
2782