From 47d52f890f6e9e227f34d8aea3eecf9aee807d32 Mon Sep 17 00:00:00 2001 From: Delmer Date: Thu, 28 Mar 2019 18:08:06 -0400 Subject: [PATCH] fix(exportVariables/test): wrap in test (#12992) --- ui/src/variables/utils/hydrateVars.test.ts | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/ui/src/variables/utils/hydrateVars.test.ts b/ui/src/variables/utils/hydrateVars.test.ts index e04b48ff5d..83e0bae72a 100644 --- a/ui/src/variables/utils/hydrateVars.test.ts +++ b/ui/src/variables/utils/hydrateVars.test.ts @@ -41,15 +41,17 @@ class FakeFetcher implements ValueFetcher { describe('hydrate vars', () => { describe('exportVariables', () => { - const a = createVariable('a', 'f(x: v.b, v.c)') - const b = createVariable('b', 'beep') - const c = createVariable('c', 'robit') - const d = createVariable('d', 'nooooo!') - const vars = [a, b, c, d] + test('should find variable exports', () => { + const a = createVariable('a', 'f(x: v.b, v.c)') + const b = createVariable('b', 'beep') + const c = createVariable('c', 'robit') + 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 () => {