Skip to content

Commit 853368e

Browse files
committed
fix tests
1 parent 0b6b8d6 commit 853368e

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/methods/init/init.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ import { init } from './init';
44
import { store } from '../../store/store';
55

66
beforeEach(() => {
7-
store.origin = 'https://api.emailjs.com';
7+
store.origin = 'api.emailjs.com';
88
store.publicKey = undefined;
99
store.storageProvider = undefined;
1010
});
1111

1212
it('should call the init method with empty options and get default values', () => {
13-
init({});
13+
init(undefined as any);
1414

1515
expect(store).toEqual({
1616
origin: 'api.emailjs.com',

src/utils/isLimitRateHit/isLimitRateHit.spec.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,8 @@ describe('limit rate is disabled', () => {
6565
});
6666

6767
describe('limit rate is enabled', () => {
68-
it('hit limit', async () => {
68+
it('hit limit with default ID', async () => {
6969
const limitRate: LimitRate = {
70-
id: 'app',
7170
throttle: 100,
7271
};
7372

0 commit comments

Comments
 (0)