mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Adhere to CoffeeScript.compile contract
...which always returns the source map as a string. This is needed because `Buffer` now requires to be initialized with either a number, a buffer, an array or a string.
This commit is contained in:
committed by
Nathan Sobo
parent
a5c9fcec2c
commit
224f2e973f
@@ -18,7 +18,7 @@ describe 'CompileCache', ->
|
||||
CompileCache.resetCacheStats()
|
||||
|
||||
spyOn(Babel, 'transform').andReturn {code: 'the-babel-code'}
|
||||
spyOn(CoffeeScript, 'compile').andReturn {js: 'the-coffee-code', v3SourceMap: {}}
|
||||
spyOn(CoffeeScript, 'compile').andReturn {js: 'the-coffee-code', v3SourceMap: "{}"}
|
||||
spyOn(TypeScriptSimple::, 'compile').andReturn 'the-typescript-code'
|
||||
spyOn(CSONParser, 'parse').andReturn {the: 'cson-data'}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user