mirror of
https://github.com/denoland/deno.git
synced 2025-07-29 08:04:00 +00:00
Integrate ScriptSnapshot into ModuleMetaData
This commit is contained in:
parent
a4b3741b4d
commit
c003df53ab
2 changed files with 22 additions and 21 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue