add tab tests

This commit is contained in:
Shin'ya Ueoka 2018-02-17 22:41:08 +09:00
parent 30d6872fa8
commit cbd8f5b928
5 changed files with 158 additions and 9 deletions

View file

@ -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 };