| Conditions | 1 |
| Paths | 1 |
| Total Lines | 24 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | var assert = require('chai').assert, |
||
| 4 | describe('PlaceDescription', function(){ |
||
| 5 | |||
| 6 | var json = { |
||
| 7 | display: { |
||
| 8 | name: 'place name', |
||
| 9 | fullName: 'place name, in a place', |
||
| 10 | type: 'place type' |
||
| 11 | } |
||
| 12 | }; |
||
| 13 | |||
| 14 | it('Create with JSON', function(){ |
||
| 15 | test(GedcomX.PlaceDescription(json)); |
||
| 16 | }); |
||
| 17 | |||
| 18 | it('Build', function(){ |
||
| 19 | test(GedcomX.PlaceDescription() |
||
| 20 | .setDisplay(json.display)); |
||
| 21 | }); |
||
| 22 | |||
| 23 | it('toJSON', function(){ |
||
| 24 | assert.deepEqual(GedcomX.PlaceDescription(json).toJSON(), json); |
||
| 25 | }); |
||
| 26 | |||
| 27 | }); |
||
| 28 | |||
| 34 | } |