mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
Add initial ModuleCache spec
This commit is contained in:
10
spec/module-cache-spec.coffee
Normal file
10
spec/module-cache-spec.coffee
Normal 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
|
||||
Reference in New Issue
Block a user