|
@@ -15,7 +15,7 @@ describe('stateSaveEpic', () => {
|
|
|
.whenActionIsDispatched(stateSaveAction())
|
|
.whenActionIsDispatched(stateSaveAction())
|
|
|
.thenResultingActionsEqual(
|
|
.thenResultingActionsEqual(
|
|
|
updateLocation({
|
|
updateLocation({
|
|
|
- query: { left: '["now-6h","now","test",{"mode":null},{"ui":[true,true,true,null]}]' },
|
|
|
|
|
|
|
+ query: { orgId: '1', left: '["now-6h","now","test",{"mode":null},{"ui":[true,true,true,null]}]' },
|
|
|
replace: true,
|
|
replace: true,
|
|
|
}),
|
|
}),
|
|
|
setUrlReplacedAction({ exploreId })
|
|
setUrlReplacedAction({ exploreId })
|
|
@@ -23,7 +23,7 @@ describe('stateSaveEpic', () => {
|
|
|
});
|
|
});
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
- describe('and explore is splitted', () => {
|
|
|
|
|
|
|
+ describe('and explore is split', () => {
|
|
|
it('then the correct actions are dispatched', () => {
|
|
it('then the correct actions are dispatched', () => {
|
|
|
const { exploreId, state } = mockExploreState({ split: true });
|
|
const { exploreId, state } = mockExploreState({ split: true });
|
|
|
|
|
|
|
@@ -32,6 +32,7 @@ describe('stateSaveEpic', () => {
|
|
|
.thenResultingActionsEqual(
|
|
.thenResultingActionsEqual(
|
|
|
updateLocation({
|
|
updateLocation({
|
|
|
query: {
|
|
query: {
|
|
|
|
|
+ orgId: '1',
|
|
|
left: '["now-6h","now","test",{"mode":null},{"ui":[true,true,true,null]}]',
|
|
left: '["now-6h","now","test",{"mode":null},{"ui":[true,true,true,null]}]',
|
|
|
right: '["now-6h","now","test",{"mode":null},{"ui":[true,true,true,null]}]',
|
|
right: '["now-6h","now","test",{"mode":null},{"ui":[true,true,true,null]}]',
|
|
|
},
|
|
},
|
|
@@ -51,7 +52,7 @@ describe('stateSaveEpic', () => {
|
|
|
.whenActionIsDispatched(stateSaveAction())
|
|
.whenActionIsDispatched(stateSaveAction())
|
|
|
.thenResultingActionsEqual(
|
|
.thenResultingActionsEqual(
|
|
|
updateLocation({
|
|
updateLocation({
|
|
|
- query: { left: '["now-6h","now","test",{"mode":null},{"ui":[true,true,true,null]}]' },
|
|
|
|
|
|
|
+ query: { orgId: '1', left: '["now-6h","now","test",{"mode":null},{"ui":[true,true,true,null]}]' },
|
|
|
replace: false,
|
|
replace: false,
|
|
|
})
|
|
})
|
|
|
);
|
|
);
|