Add initial ModuleCache spec

This commit is contained in:
Kevin Sawicki
2014-10-13 16:22:03 -04:00
parent a0ae526017
commit 8334bba484

View File

@@ -0,0 +1,10 @@
path = require 'path'
Module = require 'module'
describe 'ModuleCache', ->
beforeEach ->
spyOn(Module, '_findPath').andCallThrough()
it 'resolves atom shell module paths without hitting the filesystem', ->
require.resolve('shell')
expect(Module._findPath.callCount).toBe 0