Browse Source

Fix tests

pull/3165/head
Artur Arseniev 5 years ago
parent
commit
a246b37890
  1. 11
      test/specs/css_composer/e2e/CssComposer.js
  2. 6
      test/specs/dom_components/model/Component.js

11
test/specs/css_composer/e2e/CssComposer.js

@ -128,16 +128,7 @@ describe('E2E tests', () => {
// ruleOut is a Model
ruleOut = JSON.parse(JSON.stringify(ruleOut));
var ruleResult = {
selectors: [
{
active: true,
label: 'test1',
name: 'test1',
type: clsm.Selector.TYPE_CLASS,
private: false,
protected: false
}
],
selectors: ['test1'],
style: {
color: 'red',
width: '10px'

6
test/specs/dom_components/model/Component.js

@ -274,9 +274,9 @@ describe('Component', () => {
});
test('setAttributes overwrites correctly', () => {
obj.setAttributes({ id: 'test', 'data-test': 'value', a: 'b' });
obj.setAttributes({ 'data-test': 'value2' });
expect(obj.getAttributes()).toEqual({ 'data-test': 'value2' });
obj.setAttributes({ id: 'test', 'data-test': 'value', a: 'b', b: 'c' });
obj.setAttributes({ id: 'test2', 'data-test': 'value2' });
expect(obj.getAttributes()).toEqual({ id: 'test2', 'data-test': 'value2' });
});
test('append() returns always an array', () => {

Loading…
Cancel
Save