@@ -5,7 +5,7 @@ let sandbox = require('@architect/sandbox')
5
5
let cwd = process . cwd ( )
6
6
let mock = join ( cwd , 'test' , 'mock' , 'project' )
7
7
8
- let tables = { hi : 'there' }
8
+ let services = { tables : { hi : 'there' } }
9
9
10
10
test ( 'Set up env' , async t => {
11
11
t . plan ( 2 )
@@ -17,7 +17,7 @@ test('Set up env', async t => {
17
17
18
18
test ( 'tables.factory main client' , t => {
19
19
t . plan ( 4 )
20
- factory ( { tables } , ( err , client ) => {
20
+ factory ( { services } , ( err , client ) => {
21
21
if ( err ) t . fail ( err )
22
22
t . ok ( client . _client , '_client property assigned' )
23
23
t . notOk ( client . _db , '_db property not assigned' )
@@ -28,7 +28,7 @@ test('tables.factory main client', t => {
28
28
29
29
test ( 'tables.factory AWS SDK properties' , t => {
30
30
t . plan ( 4 )
31
- factory ( { tables , options : { awsSdkClient : true } } , ( err , client ) => {
31
+ factory ( { services , options : { awsSdkClient : true } } , ( err , client ) => {
32
32
if ( err ) t . fail ( err )
33
33
t . ok ( client . _client , '_client property assigned' )
34
34
t . ok ( client . _db , '_db property assigned' )
@@ -39,10 +39,10 @@ test('tables.factory AWS SDK properties', t => {
39
39
40
40
test ( 'tables.factory client static methods' , t => {
41
41
t . plan ( 2 )
42
- let tables = { quart : 'tequila' }
43
- factory ( { tables } , async ( err , client ) => {
42
+ let services = { tables : { quart : 'tequila' } }
43
+ factory ( { services } , async ( err , client ) => {
44
44
if ( err ) t . fail ( err )
45
- t . equals ( await client . reflect ( ) , tables , 'reflect() returns tables object' )
45
+ t . equals ( await client . reflect ( ) , services . tables , 'reflect() returns tables object' )
46
46
t . equals ( client . _name ( 'quart' ) , 'tequila' , '_name() returns tables value' )
47
47
} )
48
48
} )
0 commit comments