Skip to content

Commit

Permalink
version 0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
shimataro committed Apr 21, 2018
2 parents d4a3544 + a8471b4 commit d5eca8a
Show file tree
Hide file tree
Showing 11 changed files with 5,648 additions and 151 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ adjuster.number().in(1, 3, 5).adjust(1); // === 1

// should be adjusted
adjuster.number().default(10).adjust(undefined); // === 10
adjuster.number().allowEmpty().adjust(""); // === 0
adjuster.number().allowEmpty(123).adjust(""); // === 123
adjuster.number().minValue(1, true).adjust(0); // === 1
adjuster.number().maxValue(100, true).adjust(101); // === 100

Expand All @@ -44,7 +44,7 @@ import adjuster from "adjuster";

// should be OK
adjuster.string().adjust(123); // === "123"
adjuster.string().allowEmpty().adjust(""); // === ""
adjuster.string().allowEmpty("xyz").adjust(""); // === "xyz"
adjuster.string().in("eat", "sleep", "play").adjust("sleep"); // === "sleep"

// should be adjusted
Expand Down Expand Up @@ -112,8 +112,8 @@ const expected = {
offset: 0,
};

// should be adjusted to `expected`
adjuster.adjustData(inputData, adjusters);
const adjusted = adjuster.adjustData(inputData, adjusters);
// expect(adjusted).toEqual(expected);
```

## Release notes
Expand Down
Loading

0 comments on commit d5eca8a

Please sign in to comment.