Skip to content

Commit

Permalink
Improve specs to support Node.js in WinOS
Browse files Browse the repository at this point in the history
  • Loading branch information
lifesinger committed Mar 19, 2013
1 parent 392483d commit 9fac5dd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/specs/module/cache/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ define(function(require) {

// Delete './a' from cache
seajs.cache[url].destroy()

if (_require && process.execPath.indexOf('node.exe') > 0) {
url = url.replace(/\\/g, '/')
}
delete _require.cache[url]


Expand Down

0 comments on commit 9fac5dd

Please sign in to comment.