1
0
Fork 0

fixed test for Windows

This commit is contained in:
Jan Steemann 2013-11-11 20:30:10 +01:00
parent 54abc6bd1d
commit 6933d66af9
1 changed files with 2 additions and 1 deletions

View File

@ -145,7 +145,8 @@ function FileSystemSuite () {
tempName = fs.getTempFile('tests', false);
assertTrue(tempName !== '');
// filename should be located underneath tempPath
assertEqual(fs.join(fs.getTempPath(), 'test'), tempName.substr(0, fs.join(fs.getTempPath(), 'test').length));
// we need to call join() for the right-hand part too to normalise driver letters on Windows
assertEqual(fs.join(fs.getTempPath(), 'test'), fs.join(tempName.substr(0, fs.join(fs.getTempPath(), 'test').length)));
// file should not yet exist
assertFalse(fs.exists(tempName));