Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/api-axios/src/resources/stash.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import AvApi from '../api';
export default class AvStashApi extends AvApi {
constructor(config) {
super({
url: '/cloud/web/appl/stash/v1/session/data',
api: false,
path: 'cloud/web/appl/stash',
name: 'session/data',
...config,
});
}
Expand Down
4 changes: 4 additions & 0 deletions packages/api-axios/src/resources/tests/stash.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ describe('AvStashApi', () => {
expect(api.getUrl(api.config())).toBe('/cloud/web/appl/stash/v1/session/data');
});

test('url should include id when provided', () => {
expect(api.getUrl(api.config(), 'abc-123')).toBe('/cloud/web/appl/stash/v1/session/data/abc-123');
});

test('launch throws when linkTo is not provided', async () => {
await expect(() => api.launch({ key: 'value' })).rejects.toThrow(
'linkTo is required and was not provided'
Expand Down
Loading