summaryrefslogtreecommitdiff
path: root/js/compiler_test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'js/compiler_test.ts')
-rw-r--r--js/compiler_test.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/js/compiler_test.ts b/js/compiler_test.ts
index cc3cda406..8960112de 100644
--- a/js/compiler_test.ts
+++ b/js/compiler_test.ts
@@ -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() {