Skip to content

Commit f814ead

Browse files
committed
Merge pull request #5 from mreinstein/master
added another test for parseSync
2 parents f589906 + 7d692f9 commit f814ead

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

test/pbxProject.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,18 @@ exports['parseSync function'] = {
2424
, projHash = myProj.parseSync();
2525
test.ok(projHash);
2626
test.done();
27-
}
27+
},
28+
'should contain valid data in the returned objects hash': function (test) {
29+
var myProj = new pbx('test/parser/projects/hash.pbxproj')
30+
, projHash = myProj.parseSync();
31+
test.ok(projHash);
32+
33+
test.equal(projHash.hash.project.archiveVersion, 1);
34+
test.equal(projHash.hash.project.objectVersion, 45);
35+
test.equal(projHash.hash.project.nonObject, '29B97313FDCFA39411CA2CEF');
36+
37+
test.done();
38+
},
2839
}
2940

3041
exports['parse function'] = {

0 commit comments

Comments
 (0)