Skip to content

Commit

Permalink
Merge pull request #25 from msluther/past-tense
Browse files Browse the repository at this point in the history
[tiny] Add past-tense verbiage
  • Loading branch information
3rd-Eden committed Jun 13, 2018
2 parents 3346333 + 6dc97db commit 9fb8335
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Expand Up @@ -115,14 +115,18 @@ of chains:
- `be`
- `been`
- `is`
- `was`
- `and`
- `has`
- `have`
- `had`
- `with`
- `that`
- `at`
- `of`
- `some`
- `does`
- `did`
- `itself`
- `which`

Expand Down
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -157,7 +157,7 @@ function Assume(value, flags) {

this.value = value;

Assume.assign(this)('to, be, been, is, and, has, have, with, that, at, of, same, does, itself, which');
Assume.assign(this)('to, be, been, is, was, and, has, have, had, with, that, at, of, same, does, did, itself, which');
Assume.alias(value, this);
}

Expand Down
4 changes: 4 additions & 0 deletions test/assume.test.js
Expand Up @@ -50,6 +50,10 @@ describe('Assume', function assertions() {
}
});

it('aliases chain properly', function() {
assume(1).is.to.be.been.is.was.and.has.have.had.with.that.at.of.same.does.did.itself.which.equals(1);
});

describe('#csliceStacklone', function () {
it('increases slice for each clone', function () {
var a = assume('x')
Expand Down

0 comments on commit 9fb8335

Please sign in to comment.