@@ -10,6 +10,9 @@ import TestCase, {
10
10
SerializedSelection ,
11
11
TestCaseFixture ,
12
12
} from "../../TestCase" ;
13
+ import * as makeGraphModule from "../../makeGraph" ;
14
+ import graphConstructors from "../../graphConstructors" ;
15
+ import { SymbolColor } from "../../constants" ;
13
16
14
17
function deserializePosition ( position : SerializedPosition ) {
15
18
return new vscode . Position ( position . line , position . character ) ;
@@ -57,7 +60,15 @@ suite("recorded test cases", async function () {
57
60
// async () => fixture.initialState.clipboard
58
61
// );
59
62
60
- // TODO verify fixture decorations are in nav. map
63
+ // TODO This actually needs to happen before extension activation...
64
+ // Assert that recorded decorations are present
65
+ // const graph = makeGraphModule.makeGraph(graphConstructors);
66
+ // Object.entries(fixture.decorations).forEach(([key, _]) => {
67
+ // const [color, character] = key.split(".") as [SymbolColor, string];
68
+ // const token = graph.navigationMap.getToken(color, character);
69
+ // assert(token != null);
70
+ // });
71
+ // sinon.replace(makeGraphModule, "makeGraph", sinon.fake.returns(graph));
61
72
62
73
await new Promise ( ( resolve ) => setTimeout ( resolve , 1000 ) ) ;
63
74
@@ -69,6 +80,7 @@ suite("recorded test cases", async function () {
69
80
) ;
70
81
71
82
assert . deepStrictEqual ( fixture . finalState , await TestCase . getSnapshot ( ) ) ;
83
+ sinon . restore ( ) ;
72
84
} ) ;
73
85
} ) ;
74
86
} ) ;
0 commit comments