Browse Source

Fix tests

refactor-traits
Artur Arseniev 7 years ago
parent
commit
71f683e3eb
  1. 2
      dist/css/grapes.min.css
  2. 1183
      dist/grapes.js
  3. 8
      dist/grapes.min.js
  4. 2
      dist/grapes.min.js.map
  5. 2
      package-lock.json
  6. 2
      package.json
  7. 2
      src/dom_components/model/Components.js
  8. 3
      src/style_manager/index.js
  9. 2
      test/specs/style_manager/index.js
  10. 10
      test/specs/style_manager/model/Models.js

2
dist/css/grapes.min.css

File diff suppressed because one or more lines are too long

1183
dist/grapes.js

File diff suppressed because it is too large

8
dist/grapes.min.js

File diff suppressed because one or more lines are too long

2
dist/grapes.min.js.map

File diff suppressed because one or more lines are too long

2
package-lock.json

@ -1,6 +1,6 @@
{
"name": "grapesjs",
"version": "0.14.66",
"version": "0.14.67",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

2
package.json

@ -1,7 +1,7 @@
{
"name": "grapesjs",
"description": "Free and Open Source Web Builder Framework",
"version": "0.14.66",
"version": "0.14.67",
"author": "Artur Arseniev",
"license": "BSD-3-Clause",
"homepage": "http://grapesjs.com",

2
src/dom_components/model/Components.js

@ -82,7 +82,7 @@ export default Backbone.Collection.extend({
* Process component definition.
*/
processDef(model) {
const { em, config } = this;
const { em, config = {} } = this;
const { processor } = config;
const modelPr = processor && processor(model);

3
src/style_manager/index.js

@ -385,7 +385,8 @@ export default () => {
},
_logNoSector(sectorId) {
this.em.logWarning(`'${sectorId}' sector not found`);
const { em } = this;
em && em.logWarning(`'${sectorId}' sector not found`);
}
};
};

2
test/specs/style_manager/index.js

@ -57,7 +57,7 @@ describe('StyleManager', () => {
});
test('Get inexistent sector', () => {
expect(obj.getSector('test')).toEqual(null);
expect(obj.getSector('test')).toBeFalsy();
});
test('Get sector', () => {

10
test/specs/style_manager/model/Models.js

@ -505,7 +505,8 @@ module.exports = {
var res = {
type: 'integer',
units: ['px', '%', 'vw'],
defaults: 0
defaults: 'auto',
fixedValues: ['initial', 'inherit', 'auto']
};
res.property = 'right';
expect(obj.build('right')).toEqual([res]);
@ -517,7 +518,8 @@ module.exports = {
var res = {
type: 'integer',
units: ['px', '%', 'vh'],
defaults: 0
defaults: 'auto',
fixedValues: ['initial', 'inherit', 'auto']
};
res.property = 'top';
expect(obj.build('top')).toEqual([res]);
@ -837,14 +839,14 @@ module.exports = {
defaults: '0px'
},
{
property: 'border-bottom-left-radius',
property: 'border-bottom-right-radius',
type: 'integer',
units: ['px', '%'],
min: 0,
defaults: '0px'
},
{
property: 'border-bottom-right-radius',
property: 'border-bottom-left-radius',
type: 'integer',
units: ['px', '%'],
min: 0,

Loading…
Cancel
Save