From 8334bba4848c712b7e57dff2e150337cdbb27374 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Mon, 13 Oct 2014 16:22:03 -0400 Subject: [PATCH] Add initial ModuleCache spec --- spec/module-cache-spec.coffee | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 spec/module-cache-spec.coffee diff --git a/spec/module-cache-spec.coffee b/spec/module-cache-spec.coffee new file mode 100644 index 000000000..2f0b85eac --- /dev/null +++ b/spec/module-cache-spec.coffee @@ -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