Skip to content
This repository was archived by the owner on Jan 21, 2019. It is now read-only.

Conversation

@chalabov
Copy link
Contributor

No description provided.

.withArgs({TableName: tableName})
.callsArgWith(1, null)
};
const promise = sinon.stub().withArgs({TableName: tableName}).returnsPromise().resolves();
Copy link
Contributor

Choose a reason for hiding this comment

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

wow that is cool!

Copy link
Contributor

@nkbt nkbt left a comment

Choose a reason for hiding this comment

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

Looks great

.resolves();
const awsClient = {deleteItem: () => ({promise})};

return dynamo({awsClient, tableName}).delete(id);
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm prob missing something but some of these tests dont have an 't.shouldFail t.ok type assertion (and never did)....is that cool?

Copy link
Contributor

Choose a reason for hiding this comment

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

yeah, this test looks odd

@chalabov chalabov merged commit 8d6bc8a into packetloop:master Aug 23, 2017
@chalabov chalabov deleted the MAYH-6097 branch August 23, 2017 03:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants