@@ -11,6 +11,7 @@ import uncommittedDepsFixture from '../../../test/fixtures/expShow/uncommittedDe
1111import {
1212 ExperimentsOutput ,
1313 ExperimentStatus ,
14+ EXPERIMENT_WORKSPACE_ID ,
1415 ValueTree
1516} from '../../../cli/dvc/contract'
1617import { getConfigValue } from '../../../vscode/config'
@@ -28,7 +29,7 @@ describe('collectColumns', () => {
2829
2930 it ( 'should output both params and metrics when both are present' , ( ) => {
3031 const columns = collectColumns ( {
31- workspace : {
32+ [ EXPERIMENT_WORKSPACE_ID ] : {
3233 baseline : {
3334 data : {
3435 metrics : {
@@ -55,7 +56,7 @@ describe('collectColumns', () => {
5556
5657 it ( 'should omit params when none exist in the source data' , ( ) => {
5758 const columns = collectColumns ( {
58- workspace : {
59+ [ EXPERIMENT_WORKSPACE_ID ] : {
5960 baseline : {
6061 data : {
6162 metrics : {
@@ -75,7 +76,7 @@ describe('collectColumns', () => {
7576
7677 it ( 'should return an empty array if no params and metrics are provided' , ( ) => {
7778 const columns = collectColumns ( {
78- workspace : {
79+ [ EXPERIMENT_WORKSPACE_ID ] : {
7980 baseline : { }
8081 }
8182 } )
@@ -115,7 +116,7 @@ describe('collectColumns', () => {
115116 }
116117 }
117118 } ,
118- workspace : {
119+ [ EXPERIMENT_WORKSPACE_ID ] : {
119120 baseline : {
120121 data : {
121122 params : {
@@ -192,7 +193,7 @@ describe('collectColumns', () => {
192193 }
193194 }
194195 } ,
195- workspace : {
196+ [ EXPERIMENT_WORKSPACE_ID ] : {
196197 baseline : { }
197198 }
198199 } )
@@ -236,7 +237,7 @@ describe('collectColumns', () => {
236237 }
237238 }
238239 } ,
239- workspace : {
240+ [ EXPERIMENT_WORKSPACE_ID ] : {
240241 baseline : { }
241242 }
242243 } )
@@ -298,7 +299,7 @@ describe('collectColumns', () => {
298299 }
299300 }
300301 } ,
301- workspace : {
302+ [ EXPERIMENT_WORKSPACE_ID ] : {
302303 baseline : {
303304 data : {
304305 params : {
@@ -327,7 +328,7 @@ describe('collectColumns', () => {
327328
328329 it ( 'should create concatenated columns for nesting deeper than 5' , ( ) => {
329330 const columns = collectColumns ( {
330- workspace : {
331+ [ EXPERIMENT_WORKSPACE_ID ] : {
331332 baseline : {
332333 data : {
333334 params : {
@@ -380,7 +381,7 @@ describe('collectColumns', () => {
380381
381382 it ( 'should not report types for params and metrics without primitives or children for params and metrics without objects' , ( ) => {
382383 const columns = collectColumns ( {
383- workspace : {
384+ [ EXPERIMENT_WORKSPACE_ID ] : {
384385 baseline : {
385386 data : {
386387 params : {
@@ -557,7 +558,7 @@ describe('collectChanges', () => {
557558
558559 it ( 'should not fail when the workspace does not have metrics but a previous commit does' , ( ) => {
559560 const data : ExperimentsOutput = {
560- workspace : {
561+ [ EXPERIMENT_WORKSPACE_ID ] : {
561562 baseline : {
562563 data : {
563564 params : mockedExperimentData . baseline . data . params
@@ -660,7 +661,7 @@ describe('collectChanges', () => {
660661 it ( 'should work for missing nested arrays' , ( ) => {
661662 expect (
662663 collectChanges ( {
663- workspace : {
664+ [ EXPERIMENT_WORKSPACE_ID ] : {
664665 baseline : {
665666 data : {
666667 timestamp : null ,
@@ -738,7 +739,7 @@ describe('collectChanges', () => {
738739
739740 it ( 'should not fail when there is no commit data' , ( ) => {
740741 const data : ExperimentsOutput = {
741- workspace : {
742+ [ EXPERIMENT_WORKSPACE_ID ] : {
742743 baseline : {
743744 data : {
744745 params : mockedExperimentData . baseline . data . params
0 commit comments