fix(exportVariables/test): wrap in test (#12992)
parent
133b131617
commit
47d52f890f
|
@ -41,15 +41,17 @@ class FakeFetcher implements ValueFetcher {
|
||||||
|
|
||||||
describe('hydrate vars', () => {
|
describe('hydrate vars', () => {
|
||||||
describe('exportVariables', () => {
|
describe('exportVariables', () => {
|
||||||
const a = createVariable('a', 'f(x: v.b, v.c)')
|
test('should find variable exports', () => {
|
||||||
const b = createVariable('b', 'beep')
|
const a = createVariable('a', 'f(x: v.b, v.c)')
|
||||||
const c = createVariable('c', 'robit')
|
const b = createVariable('b', 'beep')
|
||||||
const d = createVariable('d', 'nooooo!')
|
const c = createVariable('c', 'robit')
|
||||||
const vars = [a, b, c, d]
|
const d = createVariable('d', 'nooooo!')
|
||||||
|
const vars = [a, b, c, d]
|
||||||
|
|
||||||
const actual = exportVariables([a], vars)
|
const actual = exportVariables([a], 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 () => {
|
||||||
|
|
Loading…
Reference in New Issue