Skip to content

Commit 718d6a6

Browse files
committed
Added tests for data model and data model document files
1 parent c5047b5 commit 718d6a6

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

test/pbxFile.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,13 @@ exports['lastKnownFileType'] = {
5050
test.done();
5151
},
5252

53+
'should detect that a .xcdatamodel path means wrapper.xcdatamodel': function (test) {
54+
var sourceFile = new pbxFile('dataModel.xcdatamodel');
55+
56+
test.equal('wrapper.xcdatamodel', sourceFile.lastKnownFileType);
57+
test.done();
58+
},
59+
5360
'should allow lastKnownFileType to be overridden': function (test) {
5461
var sourceFile = new pbxFile('Plugins/ChildBrowser.m',
5562
{ lastKnownFileType: 'somestupidtype' });
@@ -73,6 +80,12 @@ exports['group'] = {
7380
test.equal('Sources', sourceFile.group);
7481
test.done();
7582
},
83+
'should be Sources for data model document files': function (test) {
84+
var dataModelFile = new pbxFile('dataModel.xcdatamodeld');
85+
86+
test.equal('Sources', dataModelFile.group);
87+
test.done();
88+
},
7689
'should be Frameworks for frameworks': function (test) {
7790
var framework = new pbxFile('libsqlite3.dylib');
7891

0 commit comments

Comments
 (0)