Skip to content
This repository has been archived by the owner on Aug 30, 2022. It is now read-only.

Fix bug in ConfigWithDefaults get for falsey data #220

Merged
merged 2 commits into from Sep 13, 2016

Conversation

blink1073
Copy link
Member

Fixes #216.

getConfigSection({ name: 'test' }).then(section => {
let config = new ConfigWithDefaults({ section, defaults, className });
let data = config.get('foo');
expect(data).to.be(false);
Copy link
Member

@afshin afshin Sep 13, 2016

Choose a reason for hiding this comment

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

Should this be falsey or outright false? You could use .to.not.be.ok(); if it's the former.

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed, thanks.

@afshin
Copy link
Member

afshin commented Sep 13, 2016

Looks good, thanks!

👍

@afshin afshin merged commit 86c5788 into jupyter:master Sep 13, 2016
@blink1073 blink1073 deleted the fix-get-sync branch March 12, 2017 11:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants