~repos /atoms-element
git clone https://pyrossh.dev/repos/atoms-element.git
A simple web component library for defining your custom elements. It works on both client and server.
5b00ef0a
—
Peter John 4 years ago
fix tests
- test/index.test.js +2 -2
test/index.test.js
CHANGED
|
@@ -235,8 +235,8 @@ test('defineElement', async () => {
|
|
|
235
235
|
`;
|
|
236
236
|
};
|
|
237
237
|
defineElement('app-item', AppItem, attrTypes);
|
|
238
|
-
const {
|
|
238
|
+
const { Clazz } = getElement('app-item');
|
|
239
|
-
const instance = new
|
|
239
|
+
const instance = new Clazz([{ name: 'address', value: JSON.stringify({ street: '123' }).replace(/"/g, `'`) }]);
|
|
240
240
|
const res = await instance.render();
|
|
241
241
|
expect(res).toEqual(`
|
|
242
242
|
<div>
|