Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

configured string for null values, allowed val null to be used, and c… #73

Closed
wants to merge 3 commits into from

Conversation

stas-fastpay
Copy link
Contributor

…reated unit tests

src/index.js Outdated Show resolved Hide resolved
src/index.js Outdated Show resolved Hide resolved
Comment on lines 353 to 386
it('should return string null while passing string', (done) => {

repository.Models.MovieModel
.forge()
.fetchJsonApi({
filter: {
'type': 'null'
}
})
.then((result) => {

expect(result.models).to.have.length(1);
expect(result.models[0].get('name')).to.equal('Gone');
done();
});
});

it('should return value null while passing value', (done) => {

repository.Models.MovieModel
.forge()
.fetchJsonApi({
filter: {
'type': 'null'
}
})
.then((result) => {

expect(result.models).to.have.length(1);
expect(result.models[0].get('name')).to.equal('Gone');
done();
});
});

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These tests are the same

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants