diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2018-08-23 21:07:01 -0700 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-08-24 17:16:54 -0400 |
commit | c003df53ab1aba724cdd6a7566302f72d0df97d7 (patch) | |
tree | 0ba7f910c27a8284c38364cabca534875719e1c4 /js/compiler_test.ts | |
parent | a4b3741b4de389c1a2dc4543f6ee1a031699f8ea (diff) |
Integrate ScriptSnapshot into ModuleMetaData
Diffstat (limited to 'js/compiler_test.ts')
-rw-r--r-- | js/compiler_test.ts | 7 |
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() { |