Skip to content

Commit 8f62206

Browse files
committed
tests(pbxFile): Replaced file.lastType references with the reference lastKnownFileType
1 parent 795e429 commit 8f62206

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

test/pbxFile.js

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,67 @@
11
var pbxFile = require('../lib/pbxFile');
22

3-
exports['lastType'] = {
3+
exports['lastKnownFileType'] = {
44
'should detect that a .m path means sourcecode.c.objc': function (test) {
55
var sourceFile = new pbxFile('Plugins/ChildBrowser.m');
66

7-
test.equal('sourcecode.c.objc', sourceFile.lastType);
7+
test.equal('sourcecode.c.objc', sourceFile.lastKnownFileType);
88
test.done();
99
},
1010

1111
'should detect that a .h path means sourceFile.c.h': function (test) {
1212
var sourceFile = new pbxFile('Plugins/ChildBrowser.h');
1313

14-
test.equal('sourcecode.c.h', sourceFile.lastType);
14+
test.equal('sourcecode.c.h', sourceFile.lastKnownFileType);
1515
test.done();
1616
},
1717

1818
'should detect that a .bundle path means "wrapper.plug-in"': function (test) {
1919
var sourceFile = new pbxFile('Plugins/ChildBrowser.bundle');
2020

21-
test.equal('"wrapper.plug-in"', sourceFile.lastType);
21+
test.equal('wrapper.plug-in', sourceFile.lastKnownFileType);
2222
test.done();
2323
},
2424

2525
'should detect that a .xib path means file.xib': function (test) {
2626
var sourceFile = new pbxFile('Plugins/ChildBrowser.xib');
2727

28-
test.equal('file.xib', sourceFile.lastType);
28+
test.equal('file.xib', sourceFile.lastKnownFileType);
2929
test.done();
3030
},
3131

3232
'should detect that a .dylib path means "compiled.mach-o.dylib"': function (test) {
3333
var sourceFile = new pbxFile('libsqlite3.dylib');
3434

35-
test.equal('"compiled.mach-o.dylib"', sourceFile.lastType);
35+
test.equal('compiled.mach-o.dylib', sourceFile.lastKnownFileType);
3636
test.done();
3737
},
3838

3939
'should detect that a .framework path means wrapper.framework': function (test) {
4040
var sourceFile = new pbxFile('MessageUI.framework');
4141

42-
test.equal('wrapper.framework', sourceFile.lastType);
42+
test.equal('wrapper.framework', sourceFile.lastKnownFileType);
4343
test.done();
4444
},
4545

4646
'should detect that a .a path means archive.ar': function (test) {
4747
var sourceFile = new pbxFile('libGoogleAnalytics.a');
4848

49-
test.equal('archive.ar', sourceFile.lastType);
49+
test.equal('archive.ar', sourceFile.lastKnownFileType);
5050
test.done();
5151
},
5252

53-
'should allow lastType to be overridden': function (test) {
53+
'should allow lastKnownFileType to be overridden': function (test) {
5454
var sourceFile = new pbxFile('Plugins/ChildBrowser.m',
55-
{ lastType: 'somestupidtype' });
55+
{ lastKnownFileType: 'somestupidtype' });
5656

57-
test.equal('somestupidtype', sourceFile.lastType);
57+
test.equal('somestupidtype', sourceFile.lastKnownFileType);
5858
test.done();
5959
},
6060

61-
'should set lastType to unknown if undetectable': function (test) {
61+
'should set lastKnownFileType to unknown if undetectable': function (test) {
6262
var sourceFile = new pbxFile('Plugins/ChildBrowser.guh');
6363

64-
test.equal('unknown', sourceFile.lastType);
64+
test.equal('unknown', sourceFile.lastKnownFileType);
6565
test.done();
6666
}
6767
}

0 commit comments

Comments
 (0)