-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from microlinkhq/120
refactor: use 120 line length
- Loading branch information
Showing
6 changed files
with
23 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,18 +23,14 @@ test('.create # `name` is required', async t => { | |
}) | ||
|
||
test('.create # error if plan is invalid', async t => { | ||
const error = await t.throwsAsync( | ||
keys.create({ name: '[email protected]', plan: 123 }) | ||
) | ||
const error = await t.throwsAsync(keys.create({ name: '[email protected]', plan: 123 })) | ||
|
||
t.is(error.message, 'The id `123` must to start with `plan_`.') | ||
t.is(error.name, 'TypeError') | ||
}) | ||
|
||
test('.create # error if plan does not exist', async t => { | ||
const error = await t.throwsAsync( | ||
keys.create({ name: '[email protected]', plan: 'plan_123' }) | ||
) | ||
const error = await t.throwsAsync(keys.create({ name: '[email protected]', plan: 'plan_123' })) | ||
|
||
t.is(error.message, 'The plan `plan_123` does not exist.') | ||
t.is(error.name, 'TypeError') | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters