Skip to content

Commit a93bad4

Browse files
author
Jeff Harrell
committed
Adding medium size test case
1 parent 6737118 commit a93bad4

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/paypal-button.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ PAYPAL.apps = PAYPAL.apps || {};
182182
// Medium
183183
css += '.medium .paypal-button-logo { width: 25px; height: 29px; }';
184184
css += '.medium .paypal-button-logo svg { height: 22px; margin: 4px 0 0 -2px; }';
185-
css += '.medium .paypal-button-content { height: 15px; padding: 8px; font-size: 10px; line-height: 12px; }';
185+
css += '.medium .paypal-button-content { height: 15px; padding: 8px; font-size: 10px; line-height: 15px; }';
186186

187187
// Large
188188
css += '.large .paypal-button-logo { width: 45px; height: 44px; }';

test/spec/test.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ describe('Test page button counter', function () {
6565
});
6666

6767
it('Should have seven buy now buttons', function () {
68-
buttons.buynow.should.equal(8);
68+
buttons.buynow.should.equal(9);
6969
});
7070

7171
it('Should have two cart buttons', function () {
@@ -173,7 +173,8 @@ describe('Multiple button image sizes', function () {
173173
}
174174

175175
testSize('sm', 'buynow', 'small');
176-
testSize('sm', 'cart', 'small');
176+
testSize('md', 'buynow', 'medium');
177177
testSize('lg', 'buynow', 'large');
178+
testSize('sm', 'cart', 'small');
178179
testSize('lg', 'cart', 'large');
179180
});

0 commit comments

Comments
 (0)