Skip to content

Commit

Permalink
n4s: use named export in entry
Browse files Browse the repository at this point in the history
  • Loading branch information
ealush committed Nov 15, 2021
1 parent 366001b commit 7baedf2
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion packages/n4s/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ By default, enforce throws an error when your validations fail. These errors sho
You can extend Enforce per need, and you can add your custom validation rules in your app.

```js
import enforce from 'n4s';
import { enforce } from 'n4s';

enforce(4).isNumber();
// passes
Expand Down
2 changes: 1 addition & 1 deletion packages/n4s/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ By default, enforce throws an error when your validations fail. These errors sho
You can extend Enforce per need, and you can add your custom validation rules in your app.

```js
import enforce from 'n4s';
import { enforce } from 'n4s';

enforce(4).isNumber();
// passes
Expand Down
2 changes: 1 addition & 1 deletion packages/n4s/src/exports/__tests__/compose.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import compose from 'compose';
import enforce from 'n4s';
import { enforce } from 'n4s';
import * as ruleReturn from 'ruleReturn';

describe('compose', () => {
Expand Down
4 changes: 1 addition & 3 deletions packages/n4s/src/n4s.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
import { enforce } from 'enforce';

export default enforce;
export { enforce } from 'enforce';
2 changes: 1 addition & 1 deletion packages/n4s/src/rules/__tests__/ruleCondition.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import enforce from 'n4s';
import { enforce } from 'n4s';
import ruleReturn, { failing, passing } from 'ruleReturn';

describe('enforce.condition', () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/vast/src/__tests__/vast.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { createState } from 'vast';

let state = createState();

describe('state', () => {
describe('vast state', () => {
beforeEach(() => {
state = createState();
});
Expand Down
2 changes: 1 addition & 1 deletion packages/vest/src/produce/__tests__/done.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ describe('done', () => {
});

describe('When suite re-runs and a pending test is now skipped', () => {
it.only('Should immediately call the second done callback, omit the first', async () => {
it('Should immediately call the second done callback, omit the first', async () => {
const done_0 = jest.fn();
const done_1 = jest.fn();

Expand Down

0 comments on commit 7baedf2

Please sign in to comment.