Skip to content

Commit

Permalink
v2.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
justincy committed Apr 24, 2015
1 parent 14497e6 commit 4482f93
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 8 deletions.
5 changes: 3 additions & 2 deletions fs-check.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,10 @@ module.exports = {
for(var j = 0; j < marriageFacts.length; j++){
var fact = marriageFacts[j];
if(fact.type === 'http://gedcomx.org/Marriage'){
var date = new GedcomXDate(utils.getFormalDate(fact));
utils.ensureFullDate(date, 1, 1);
var date = utils.getFormalDate(fact);
if(date){
date = new GedcomXDate(date);
utils.ensureFullDate(date, 1, 1);
marriageDates.push(date);
}
}
Expand Down
2 changes: 1 addition & 1 deletion fs-check.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion fs-check.min.js.map

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions lib/checks/childBeforeMarriage.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,10 @@ module.exports = {
for(var j = 0; j < marriageFacts.length; j++){
var fact = marriageFacts[j];
if(fact.type === 'http://gedcomx.org/Marriage'){
var date = new GedcomXDate(utils.getFormalDate(fact));
utils.ensureFullDate(date, 1, 1);
var date = utils.getFormalDate(fact);
if(date){
date = new GedcomXDate(date);
utils.ensureFullDate(date, 1, 1);
marriageDates.push(date);
}
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"Family History"
],
"homepage": "https://github.com/genealogysystems/fs-check",
"version": "2.2.1",
"version": "2.2.2",
"repository": {
"type": "git",
"url": "[email protected]:genealogysystems/fs-check.git"
Expand Down
8 changes: 7 additions & 1 deletion test/checks/childBeforeMarriage.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,13 @@ describe('childBeforeMarriage', function(){
var relationships = {
getSpouseRelationships: function(){
return [
FS.createCouple()
FS.createCouple({
facts: [
FS.createFact({
type: 'http://gedcomx.org/Marriage'
})
]
})
]
}
};
Expand Down

0 comments on commit 4482f93

Please sign in to comment.