1 | const expect = require('chai').expect;
|
2 |
|
3 | const deleteMetaProperties = require('../helper/meta-properties').deleteMetaProperties;
|
4 |
|
5 | const item = require('./resources/item.json');
|
6 |
|
7 | describe('data manipulation', () => {
|
8 | it('should delete all meta properties', function() {
|
9 | let slimItem = deleteMetaProperties(item);
|
10 | expect(slimItem).to.not.have.property('editedBy');
|
11 | expect(slimItem).to.not.have.property('createdBy');
|
12 | expect(slimItem).to.not.have.property('department');
|
13 | })
|
14 |
|
15 |
|
16 | it('should only delete all meta properties', function() {
|
17 | let slimItem = deleteMetaProperties(item);
|
18 | expect(slimItem).to.have.property('data');
|
19 | })
|
20 |
|
21 | })
|
22 |
|
23 |
|