Skip to content

Commit

Permalink
update 1 test
Browse files Browse the repository at this point in the history
  • Loading branch information
nikrom17 committed Oct 1, 2024
1 parent ac190e3 commit 98b67b4
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions test/integration/tests/button/style.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,17 +67,26 @@ describe("paypal button color", () => {
destroyTestContainer();
});

it("should render a button with gold background when empty string is passed in for color", () => {
it("should render a button with gold background when empty string is passed in for color", (done) => {
done = once(done);

return window.paypal
.Buttons({
style: {
color: "",
},
test: {
onRender() {
try {
assert.ok(getElementRecursive(".paypal-button-color-gold"));
done();
} catch (e) {
done(e);
}
},
},
})
.render("#testContainer")
.then(() => {
assert.ok(getElementRecursive(".paypal-button-color-gold"));
});
.render("#testContainer");
});

it("should render a button with gold background when no color is specified", () => {
Expand Down

0 comments on commit 98b67b4

Please sign in to comment.