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

Add persist: false option to createWindow #247

Merged
merged 1 commit into from
May 30, 2019

Conversation

bingenito
Copy link
Member

If createWindow options include persist: false, do not include the window in layout persistence.

Fixes #241

If createWindow options include persist: false, do not include the window in layout persistence.

Fixes morganstanley#241
@bingenito bingenito requested a review from a team May 29, 2019 19:21
expect(windows[0].innerWindow).toEqual(MockWindow.singleton);
done();
});
describe("window management", () => {
Copy link
Member Author

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) => {
Copy link
Member Author

Choose a reason for hiding this comment

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

The new test added

Copy link
Member

Choose a reason for hiding this comment

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

👍

@codecov
Copy link

codecov bot commented May 29, 2019

Codecov Report

Merging #247 into master will increase coverage by 0.03%.
The diff coverage is 100%.

@@            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
Impacted Files Coverage Δ
packages/desktopjs-electron/src/electron.ts 96.99% <100%> (+0.02%) ⬆️
packages/desktopjs/src/Default/default.ts 97.37% <100%> (+0.03%) ⬆️
packages/desktopjs-openfin/src/openfin.ts 87.17% <100%> (+0.11%) ⬆️

@bingenito bingenito merged commit 579989d into morganstanley:master May 30, 2019
@bingenito bingenito deleted the ISSUE-241 branch March 30, 2021 16:36
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.

Add createWindow option to exclude window from persistence
2 participants