Skip to content

Commit

Permalink
fixes in tests and documentations
Browse files Browse the repository at this point in the history
  • Loading branch information
DNizovtsev committed Jan 19, 2015
1 parent 24bfdb9 commit df6847e
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ If you have npm installed, you can simply type:

Or you can clone this repository using the git command:

git clone git://github.com/JSBizon/node-memorystream.git
git clone git://github.com/JSBizon/file-cookie-store.git

## Usage

Expand Down
31 changes: 31 additions & 0 deletions test/file-store.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,36 @@ describe('Test file cookie store', function() {
done();
});
});

it ('wrong arguments2', function (done) {
cookie_store.findCookie(null, '/', null, function (err, cookie) {

expect(err).not.to.be.ok();
expect(cookie).not.to.be.ok();

done();
});
});

it ('wrong arguments3', function (done) {
cookie_store.findCookie('.amazon.com', null, 'skin', function (err, cookie) {

expect(err).not.to.be.ok();
expect(cookie).not.to.be.ok();

done();
});
});

it ('wrong arguments4', function (done) {
cookie_store.findCookie('.amazon.com', '/', null, function (err, cookie) {

expect(err).not.to.be.ok();
expect(cookie).not.to.be.ok();

done();
});
});
});


Expand Down Expand Up @@ -192,6 +222,7 @@ describe('Test file cookie store', function() {
done();
});
});

});


Expand Down

0 comments on commit df6847e

Please sign in to comment.