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

chore(cleanup): remove deprecated preferences code #11

Merged
merged 1 commit into from
Oct 12, 2022

Conversation

NullVoxPopuli
Copy link
Contributor

@NullVoxPopuli NullVoxPopuli commented Oct 11, 2022

Now that everything is plugins, we don't need this anymore

@@ -12,451 +12,233 @@ import type { PreferencesData } from 'ember-headless-table';
module('Unit | -private | table-preferences', function (hooks) {
setupTest(hooks);

module('deprecated APIs', function () {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

all of these tests have been deleted

Copy link
Contributor

Choose a reason for hiding this comment

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

It looks like they have been replaced. Is this prep for the upcoming tests?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the replacement tests already exist 🎉

});

module('#restore and #persist are inverses', function () {
// test('mixed top-level keys along with plugin data', async function (assert) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

these tests were commented out because of sinon usage, and sinon does not natively support running in browsers (it tries to import util, which is a known node package -- there is a browser version of util, but I opted to have fewer dependencies).

The tests using non-deprecated APIs have been re-enabled and have had their sinon usage removed

Copy link
Contributor

Choose a reason for hiding this comment

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

Ohhhh I see.

@github-actions
Copy link
Contributor

github-actions bot commented Oct 11, 2022

@NullVoxPopuli NullVoxPopuli force-pushed the remove-deprecated-preferences-code branch from 3a23c56 to 87c7079 Compare October 11, 2022 21:38
@NullVoxPopuli NullVoxPopuli mentioned this pull request Oct 11, 2022
11 tasks
Copy link
Contributor

@ynotdraw ynotdraw left a comment

Choose a reason for hiding this comment

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

👋 nice!

@nicolechung
Copy link
Contributor

Unrelated, but I raised this issue because I can't seem to run docs-app locally : #13

@NullVoxPopuli NullVoxPopuli merged commit ef5a6c7 into main Oct 12, 2022
@NullVoxPopuli NullVoxPopuli deleted the remove-deprecated-preferences-code branch October 12, 2022 13:43
@github-actions
Copy link
Contributor

github-actions bot commented Nov 2, 2022

🎉 This PR is included in version 1.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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.

3 participants