mirror of
https://github.com/olehomelchenko/astrolabe.git
synced 2026-08-08 02:02:33 +00:00
Chart builder: discoverable entry points — Build Chart door, dataset picker, no-datasets state
This commit is contained in:
@@ -16,6 +16,7 @@ const ALL_VIEWS: ViewState[] = [
|
||||
{ kind: 'dataset', datasetId: 7 },
|
||||
{ kind: 'dataset-new' },
|
||||
{ kind: 'dataset-build', datasetId: 42 },
|
||||
{ kind: 'build' },
|
||||
];
|
||||
|
||||
describe('serializeHash', () => {
|
||||
@@ -28,6 +29,7 @@ describe('serializeHash', () => {
|
||||
expect(serializeHash({ kind: 'dataset-build', datasetId: 42 })).toBe(
|
||||
'#datasets/dataset-42/build',
|
||||
);
|
||||
expect(serializeHash({ kind: 'build' })).toBe('#build');
|
||||
});
|
||||
});
|
||||
|
||||
@@ -42,6 +44,7 @@ describe('parseHash', () => {
|
||||
kind: 'dataset-build',
|
||||
datasetId: 42,
|
||||
});
|
||||
expect(parseHash('#build')).toEqual({ kind: 'build' });
|
||||
});
|
||||
|
||||
it('tolerates a missing leading "#"', () => {
|
||||
|
||||
Reference in New Issue
Block a user