fix(exportVariables/test): wrap in test (#12992)
parent
133b131617
commit
47d52f890f
|
@ -41,6 +41,7 @@ class FakeFetcher implements ValueFetcher {
|
||||||
|
|
||||||
describe('hydrate vars', () => {
|
describe('hydrate vars', () => {
|
||||||
describe('exportVariables', () => {
|
describe('exportVariables', () => {
|
||||||
|
test('should find variable exports', () => {
|
||||||
const a = createVariable('a', 'f(x: v.b, v.c)')
|
const a = createVariable('a', 'f(x: v.b, v.c)')
|
||||||
const b = createVariable('b', 'beep')
|
const b = createVariable('b', 'beep')
|
||||||
const c = createVariable('c', 'robit')
|
const c = createVariable('c', 'robit')
|
||||||
|
@ -51,6 +52,7 @@ describe('hydrate vars', () => {
|
||||||
|
|
||||||
expect(actual).toEqual([a, b, c])
|
expect(actual).toEqual([a, b, c])
|
||||||
})
|
})
|
||||||
|
})
|
||||||
|
|
||||||
test('should invalidate cyclic subgraphs', async () => {
|
test('should invalidate cyclic subgraphs', async () => {
|
||||||
// Construct the following graph:
|
// Construct the following graph:
|
||||||
|
|
Loading…
Reference in New Issue