Skip to content

Commit 71649af

Browse files
committedJul 4, 2018
fix: typos
1 parent e615ca5 commit 71649af

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed
 

‎src/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function identifyFactory(key, getGlobalData) {
2323
};
2424
}
2525

26-
// Create the page() functino
26+
// Create the page() function
2727
function pageFactory(key, getGlobalData) {
2828
return async (name, data = {}) => {
2929
const { page } = await loadScript(key);
@@ -32,7 +32,7 @@ function pageFactory(key, getGlobalData) {
3232
};
3333
}
3434

35-
// create the group() functino
35+
// create the group() function
3636
function groupFactory(key, getGlobalData) {
3737
return async (groupId, data) => {
3838
const { group } = await loadScript(key);

‎src/index.test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ describe('init', () => {
4242
expect(typeof result.identify).toEqual('function');
4343
});
4444

45-
it('should return an page function', () => {
45+
it('should return a page function', () => {
4646
result = init(KEY);
4747
expect(typeof result.page).toEqual('function');
4848
});
4949

50-
it('should return an group function', () => {
50+
it('should return a group function', () => {
5151
result = init(KEY);
5252
expect(typeof result.group).toEqual('function');
5353
});

0 commit comments

Comments
 (0)