-
Notifications
You must be signed in to change notification settings - Fork 40
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
Add persist: false option to createWindow #247
Conversation
If createWindow options include persist: false, do not include the window in layout persistence. Fixes morganstanley#241
expect(windows[0].innerWindow).toEqual(MockWindow.singleton); | ||
done(); | ||
}); | ||
describe("window management", () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This entire describe block was incorrect under another describe so moved out to higher level
done(); | ||
}); | ||
}); | ||
it("buildLayout skips windows with persist false", (done) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new test added
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Codecov Report
@@ Coverage Diff @@
## master #247 +/- ##
==========================================
+ Coverage 93.53% 93.57% +0.03%
==========================================
Files 16 16
Lines 1485 1494 +9
Branches 249 253 +4
==========================================
+ Hits 1389 1398 +9
Misses 96 96
|
If createWindow options include persist: false, do not include the window in layout persistence.
Fixes #241