add tab tests
This commit is contained in:
parent
30d6872fa8
commit
cbd8f5b928
5 changed files with 158 additions and 9 deletions
|
@ -1,4 +1,6 @@
|
|||
import { TABS_CREATE } from '../shared/messages';
|
||||
import {
|
||||
TABS_CREATE, TABS_SELECT_AT,
|
||||
} from '../shared/messages';
|
||||
import * as ipc from './ipc';
|
||||
|
||||
const create = (windowId, url) => {
|
||||
|
@ -9,4 +11,12 @@ const create = (windowId, url) => {
|
|||
});
|
||||
};
|
||||
|
||||
export { create };
|
||||
const selectAt = (windowId, index) => {
|
||||
return ipc.send({
|
||||
type: TABS_SELECT_AT,
|
||||
windowId,
|
||||
index,
|
||||
});
|
||||
};
|
||||
|
||||
export { create, selectAt };
|
||||
|
|
Reference in a new issue