-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
reorganize and refactor behaviors and features unit tests
- Loading branch information
1 parent
2b2bee3
commit 996d3ed
Showing
2 changed files
with
23 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
import { setEnabled, isEnabled } from '../../../src/config/features'; | ||
|
||
describe('features', function() { | ||
it('enabled when its present and true', function() { | ||
Marionette.setEnabled('foo', true); | ||
expect(Marionette.isEnabled('foo')).to.be.true; | ||
setEnabled('foo', true); | ||
expect(isEnabled('foo')).to.be.true; | ||
}); | ||
|
||
it('disabled when its present and false', function() { | ||
Marionette.setEnabled('foo', false); | ||
expect(Marionette.isEnabled('foo')).to.be.false; | ||
setEnabled('foo', false); | ||
expect(isEnabled('foo')).to.be.false; | ||
}); | ||
|
||
it('disabled when not present', function() { | ||
expect(Marionette.isEnabled('foo')).to.be.false; | ||
expect(isEnabled('foo')).to.be.false; | ||
}); | ||
}); |