Skip to content

Commit

Permalink
test: use client.context over client._context after recent change…
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Apr 1, 2020
1 parent 9ba7f89 commit 2686a5c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/connection/connection.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,9 @@ test.group('Connection | setup', (group) => {
const connection = new Connection('primary', config, getLogger())
connection.connect()

assert.equal(connection.client!['_context'].client.constructor.name, 'Client_MySQL')
assert.equal(connection.client!['_context'].client.config.connection.charset, 'utf-8')
assert.equal(connection.client!['_context'].client.config.connection.typeCast, false)
assert.equal(connection.client!['context'].client.constructor.name, 'Client_MySQL')
assert.equal(connection.client!['context'].client.config.connection.charset, 'utf-8')
assert.equal(connection.client!['context'].client.config.connection.typeCast, false)
await connection.disconnect()
})
})
Expand Down

0 comments on commit 2686a5c

Please sign in to comment.