~repos /atoms-element

#js

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
Files changed (1) hide show
  1. 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 { clazz } = getElement('app-item');
238
+ const { Clazz } = getElement('app-item');
239
- const instance = new clazz([{ name: 'address', value: JSON.stringify({ street: '123' }).replace(/"/g, `'`) }]);
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>