Skip to content

Commit

Permalink
published 0.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
bashleigh committed Sep 26, 2018
1 parent 7e7c976 commit 9c321d8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<p align="center"><img src="https://avatars1.githubusercontent.com/u/41109786?s=200&v=4"/></p>
<p align="center">
<a href="https://travis-ci.org/nestjs-community/nestjs-braintree"><img src="https://travis-ci.org/nestjs-community/nestjs-braintree.svg?branch=master"/></a>
<a href="https://www.npmjs.com/package/nestjs-braintree"><img src="https://img.shields.io/npm/v/nestjs-braintree.svg"/></a>
<a href="https://github.com/nestjs-community/nestjs-braintree/blob/master/LICENSE"><img src="https://img.shields.io/github/license/nestjs-community/nestjs-braintree.svg"/></a>
<a href='https://coveralls.io/github/nestjs-community/nestjs-braintree?branch=master'><img src='https://coveralls.io/repos/github/nestjs-community/nestjs-braintree/badge.svg?branch=master' alt='Coverage Status' /></a>
</p>
Expand All @@ -15,7 +16,7 @@
## Install

```bash
$ yarn add nestjs-braintree //not currently published
$ yarn add nestjs-braintree
```

## Use
Expand Down
14 changes: 10 additions & 4 deletions src/__tests__/braintree.controller.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,16 @@ describe('BraintreeWebhookController', async () => {
expect(provider).toBeInstanceOf(SubscriptionProvider);
});

it('wehook controller instances',() => {
const braintreeWebhookController = module.get<BraintreeWebhookController>(BraintreeWebhookController);
it('wehook controller instances', () => {
const braintreeWebhookController = module.get<BraintreeWebhookController>(
BraintreeWebhookController,
);

expect(braintreeWebhookController.braintree).toBeInstanceOf(BraintreeProvider);
expect(braintreeWebhookController.webhookProvider).toBeInstanceOf(BraintreeWebhookProvider);
expect(braintreeWebhookController.braintree).toBeInstanceOf(
BraintreeProvider,
);
expect(braintreeWebhookController.webhookProvider).toBeInstanceOf(
BraintreeWebhookProvider,
);
});
});

0 comments on commit 9c321d8

Please sign in to comment.