| Conditions | 1 |
| Paths | 1 |
| Total Lines | 26 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | var chai = require('chai'); |
||
| 15 | describe('Form', function() { |
||
| 16 | before( function(done) { |
||
| 17 | Manager.instance.init() |
||
| 18 | .then(function () { |
||
| 19 | this.fixture = {} |
||
| 20 | done() |
||
| 21 | |||
| 22 | }.bind(this)) |
||
| 23 | }); |
||
| 24 | |||
| 25 | /** |
||
| 26 | * getTemplatesTexts |
||
| 27 | * |
||
| 28 | */ |
||
| 29 | it('new Form', function() { |
||
| 30 | // stub |
||
| 31 | var sinonInstance = sinon.sandbox.create(); |
||
|
|
|||
| 32 | // sinonInstance.stub(fse, 'readFileSync'); |
||
| 33 | |||
| 34 | var form = new cmsEditor.form() |
||
| 35 | form.add({key: 'test'}) |
||
| 36 | chai.expect(form._form.default.item[0].key).to.be.equal('test'); |
||
| 37 | chai.expect(form.dontHaveKey('test')).to.be.equal(false); |
||
| 38 | chai.expect(form.form.default.item.length).to.be.above(0); |
||
| 39 | }); |
||
| 40 | }); |
||
| 41 |