Skip to content

Conversation

@laurenzlong
Copy link
Contributor

Description

Fix 2 bugs in index.ts:

  • top level export was actually missing the service account path parameter, which the init function in lifecycle.ts has.
  • the cleanup function didn't work properly

Code sample

it('should export wrap as a function', () => {
expect(indexExport.wrap).to.be.an('function');
it('should export the expected functions and namespaces', () => {
expect(Object.getOwnPropertyNames(indexExport)).to.deep.equal([
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's do Object.getOwnPropertyNames.sort() since properties of an object are not guaranteed to remain in a stable order.

@laurenzlong laurenzlong merged commit ee8025c into master Apr 26, 2018
@laurenzlong laurenzlong deleted the ll-fixinitcleanup branch April 26, 2018 23:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants