diff options
author | Sebastian <sebasjm@gmail.com> | 2021-05-31 11:34:48 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2021-05-31 11:34:48 -0300 |
commit | c6c17a1c0aaa2c76616ec93df3ebe6621b547cd9 (patch) | |
tree | 5ddf23e425d28073f7c81696f23a01b1ffdb6db5 /packages/taler-wallet-webextension/tests | |
parent | 3688f7e4d4d2ccd148edd25e0a8eaddbd677b317 (diff) | |
download | wallet-core-c6c17a1c0aaa2c76616ec93df3ebe6621b547cd9.tar.xz |
add storybook
Diffstat (limited to 'packages/taler-wallet-webextension/tests')
-rw-r--r-- | packages/taler-wallet-webextension/tests/i18n.test.tsx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/packages/taler-wallet-webextension/tests/i18n.test.tsx b/packages/taler-wallet-webextension/tests/i18n.test.tsx index adbb6d7d8..89c5b3d54 100644 --- a/packages/taler-wallet-webextension/tests/i18n.test.tsx +++ b/packages/taler-wallet-webextension/tests/i18n.test.tsx @@ -18,7 +18,6 @@ import { internalSetStrings, str, Translate } from "../src/i18n"; import { render, configure } from "enzyme"; import Adapter from 'enzyme-adapter-preact-pure'; -import { h } from "preact"; configure({ adapter: new Adapter() }); @@ -49,7 +48,7 @@ test("str translation", (done) => { const a = "a"; const b = "b"; expect(strAlias`str3 ${a} / ${b}`).toEqual("foo3 b ; a"); - const r = render(<TranslateAlias>str1</TranslateAlias>); + const r = render(<Translate>str1</Translate>); expect(r.text()).toEqual("foo1"); const r2 = render( |