-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
299 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
{ | ||
"persons": [ | ||
{ | ||
"id": "1", | ||
"gender": { | ||
"type": "http://gedcomx.org/Male" | ||
}, | ||
"names": [ | ||
{ | ||
"nameForms": [ | ||
{ | ||
"fullText": "President George Washington", | ||
"parts": [ | ||
{ | ||
"type": "http://gedcomx.org/Given", | ||
"value": "President George" | ||
}, | ||
{ | ||
"type": "http://gedcomx.org/Surname", | ||
"value": "Washington" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
], | ||
"facts": [ | ||
{ | ||
"type": "http://gedcomx.org/Birth", | ||
"date": { | ||
"original": "22 Feb 1732" | ||
}, | ||
"place": { | ||
"original": "Wakefield, Westmoreland, Virginia, United States" | ||
}, | ||
"value": "Bet Bridge's Creek and Pope's Creek" | ||
}, | ||
{ | ||
"type": "http://gedcomx.org/MilitaryService", | ||
"date": { | ||
"original": "6 Nov 1752" | ||
}, | ||
"place": { | ||
"original": "Virginia, United States" | ||
}, | ||
"value": "Major in the forces for Fredericksburg County" | ||
}, | ||
{ | ||
"type": "http://gedcomx.org/Occupation", | ||
"date": { | ||
"original": "from 24 Jul 1758 to 1769" | ||
}, | ||
"place": { | ||
"original": "Williamsburg, Virginia, United States" | ||
}, | ||
"value": "House of Burgesses of Virginia" | ||
}, | ||
{ | ||
"type": "http://gedcomx.org/Property", | ||
"date": { | ||
"original": "14 Mar 1768" | ||
}, | ||
"value": "Inherited Mount Vernon" | ||
}, | ||
{ | ||
"type": "http://gedcomx.org/Occupation", | ||
"date": { | ||
"original": "5 Aug 1774" | ||
}, | ||
"place": { | ||
"original": "Philadelphia, Philadelphia, Pennsylvania, United States" | ||
}, | ||
"value": "One of seven elected delegates from Virginia, to the Continental Congress." | ||
}, | ||
{ | ||
"type": "http://gedcomx.org/Occupation", | ||
"date": { | ||
"original": "4 Feb 1789" | ||
}, | ||
"place": { | ||
"original": "United States" | ||
}, | ||
"value": "Elected first \nPresident of the United States." | ||
}, | ||
{ | ||
"type": "http://gedcomx.org/Death", | ||
"date": { | ||
"original": "14 Dec 1799" | ||
}, | ||
"place": { | ||
"original": "Fairfax (independent city), Virginia, United States" | ||
}, | ||
"value": "Mount Vernon." | ||
}, | ||
{ | ||
"type": "http://gedcomx.org/Burial", | ||
"date": { | ||
"original": "18 Dec 1799" | ||
}, | ||
"place": { | ||
"original": "Fairfax (independent city), Virginia, United States" | ||
}, | ||
"value": "Private crypt at Mount Vernon" | ||
} | ||
] | ||
} | ||
] | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,10 @@ | ||
var path = require('path'), | ||
expect = require('chai').expect, | ||
helpers = require('../../testHelpers'), | ||
genscrape = require('../../../'); | ||
var setupTest = require('../../testHelpers').createTestRunner('werelate'); | ||
|
||
describe.skip('werelate', function(){ | ||
describe.only('werelate', function(){ | ||
|
||
it('works', function(done){ | ||
|
||
// Loading from a file because it often errored silently | ||
// in jsdom when loading over http | ||
var url = 'http://www.werelate.org/wiki/Person:George_Washington_(6)', | ||
filePath = path.join(__dirname, '..', 'responses', 'werelate', 'washington.html'); | ||
helpers.mockDom(url, filePath, function(){ | ||
genscrape() | ||
.on('data', function(data){ | ||
expect(data).to.deep.equal({ | ||
givenName: 'President George', | ||
familyName: 'Washington', | ||
birthDate: '22 Feb 1732', | ||
birthPlace: 'Wakefield, Westmoreland, Virginia, United States', | ||
deathDate: '14 Dec 1799', | ||
deathPlace: 'Fairfax (independent city), Virginia, United States', | ||
spouseGivenName: 'Martha', | ||
spouseFamilyName: 'Dandridge', | ||
fatherGivenName: 'Captain Augustine', | ||
fatherFamilyName: 'Washington', | ||
motherGivenName: 'Mary', | ||
motherFamilyName: 'Ball' | ||
}); | ||
done(); | ||
}) | ||
}) | ||
|
||
}) | ||
it('simple', setupTest( | ||
'washington', | ||
'http://www.werelate.org/wiki/Person:George_Washington_(6)' | ||
)); | ||
|
||
}); |
Oops, something went wrong.