| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | var chai = require('chai'); |
||
| 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 |