Skip to content

[SEMVER-MAJOR] Disable unused expressions - #6

Merged
bajtos merged 1 commit into
masterfrom
no-unused-expressions
May 6, 2016
Merged

[SEMVER-MAJOR] Disable unused expressions#6
bajtos merged 1 commit into
masterfrom
no-unused-expressions

Conversation

@bajtos

@bajtos bajtos commented May 5, 2016

Copy link
Copy Markdown
Member

Bad

expect(found).to.be.object;

Correct

expect(found).to.be.object();

See Beware of libraries that assert on property access. We should use dirty-chai plugin to fix chai API and get function checkers (be.object()) in addition to property checkers (be.object).

@superkhau @raymondfeng @strongloop/loopback-dev please review

Bad

  expect(found).to.be.object;

Correct

  expect(found).to.be.object();
@superkhau

Copy link
Copy Markdown
Collaborator

LGTM

@superkhau superkhau assigned bajtos and unassigned superkhau May 5, 2016
@bajtos
bajtos merged commit 2c097e3 into master May 6, 2016
@bajtos
bajtos deleted the no-unused-expressions branch May 6, 2016 07:13
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.

2 participants