Skip to content

Commit

Permalink
Clean tests from debug
Browse files Browse the repository at this point in the history
  • Loading branch information
artf committed Jan 18, 2018
1 parent e6b623f commit 01f7620
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
7 changes: 2 additions & 5 deletions src/style_manager/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,9 +248,8 @@ module.exports = () => {
const em = c.em;
const classes = model.get('classes');
const id = model.getId();
console.log('rule a');

if (em) {
console.log('rule b');
const config = em.getConfig();
const um = em.get('UndoManager');
const cssC = em.get('CssComposer');
Expand All @@ -259,9 +258,8 @@ module.exports = () => {
const hasClasses = valid.length;
const opts = { state };
let rule;
console.log('rule b2');

if (hasClasses) {
console.log('rule c');
const deviceW = em.getCurrentMedia();
rule = cssC.get(valid, state, deviceW);

Expand All @@ -277,7 +275,6 @@ module.exports = () => {
um.start();
}
} else if (config.avoidInlineStyle) {
console.log('rule d');
rule = cssC.getIdRule(id, opts);
!rule && (rule = cssC.setIdRule(id, {}, opts));
}
Expand Down
1 change: 0 additions & 1 deletion src/style_manager/view/SectorsView.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ module.exports = Backbone.View.extend({
};

model = em.get('StyleManager').getModelToStyle(model);
console.log('AFTER getModelToStyle');
state && appendStateRule(model.getStyle());
pt.model = model;
pt.trigger('update');
Expand Down
7 changes: 2 additions & 5 deletions test/specs/selector_manager/e2e/ClassManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ module.exports = {
});
});

describe.only('Interaction with Components', () => {
describe('Interaction with Components', () => {
beforeEach(function() {
components = gjs.getComponents();
tagEl = instClassTagViewer(gjs, fixtures);
Expand All @@ -52,18 +52,15 @@ module.exports = {
it('Assign correctly new class to component', function() {
var model = components.add({});
expect(model.get('classes').length).toEqual(0);
console.log('Assign correctly...');
gjs.select(model);
//tagEl.addNewTag('test');
/*
tagEl.addNewTag('test');
expect(model.get('classes').length).toEqual(1);
expect(
model
.get('classes')
.at(0)
.get('name')
).toEqual('test');
*/
});

it('Classes from components are correctly imported inside main container', function() {
Expand Down

0 comments on commit 01f7620

Please sign in to comment.