test: adjust tests for source-list-map

This commit is contained in:
e-cloud
2016-11-29 18:14:36 +08:00
parent b2519d320c
commit 1585bf7d21
+3 -3
View File
@@ -13,9 +13,9 @@ node.mapGeneratedCode(function (code) {
})
slm.fromStringWithSourceMap('hello', {
sources: null,
sourcesContent: null,
mappings: null
sources: [node, new slm.CodeNode('hello')],
sourcesContent: ['hi'],
mappings: 'null'
});
const snode = new slm.SourceNode('hi', 'i\'am', 'e-cloud');