Integrate ScriptSnapshot into ModuleMetaData

This commit is contained in:
Kitson Kelly 2018-08-23 21:07:01 -07:00 committed by Ryan Dahl
parent a4b3741b4d
commit c003df53ab
2 changed files with 22 additions and 21 deletions

View file

@ -436,7 +436,14 @@ test(function compilerGetScriptSnapshot() {
"Expected .getText() to equal 'import'"
);
assertEqual(result.getChangeRange(result), undefined);
// This is and optional part of the `IScriptSnapshot` API which we don't
// define, os checking for the lack of this property.
assert(!("dispose" in result));
assert(
result === moduleMetaData,
"result should strictly equal moduleMetaData"
);
});
test(function compilerGetCurrentDirectory() {