| Conditions | 1 |
| Paths | 1 |
| Total Lines | 33 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | var chai = require('chai'); |
||
| 10 | describe('attributes', function() { |
||
| 11 | before( function(done) { |
||
| 12 | Manager.instance.init() |
||
| 13 | .then(function () { |
||
| 14 | Manager.instance._whereKeys = ['title', 'priority', 'abe_meta', 'articles'] |
||
| 15 | Manager.instance.updateList() |
||
| 16 | |||
| 17 | this.fixture = { |
||
| 18 | html: fse.readFileSync(__dirname + '/fixtures/templates/article.html', 'utf8'), |
||
| 19 | json: fse.readJsonSync(__dirname + '/fixtures/data/article-1.json') |
||
| 20 | } |
||
| 21 | done() |
||
| 22 | |||
| 23 | }.bind(this)) |
||
| 24 | }); |
||
| 25 | |||
| 26 | /** |
||
| 27 | * cmsData.values.removeDuplicate |
||
| 28 | * |
||
| 29 | */ |
||
| 30 | it('cmsData.values.removeDuplicate', function() { |
||
| 31 | var newJson = cmsData.values.removeDuplicate(this.fixture.html, this.fixture.json) |
||
| 32 | chai.expect(newJson.title).to.be.undefined; |
||
| 33 | }); |
||
| 34 | |||
| 35 | /** |
||
| 36 | * cmsData.attributes.sanitizeSourceAttribute |
||
| 37 | * |
||
| 38 | */ |
||
| 39 | it('cmsData.attributes.sanitizeSourceAttribute', function() { |
||
| 40 | // not sure what it does |
||
| 41 | }); |
||
| 42 | }); |
||
| 43 |