Skip to content

Commit

Permalink
fix tests and destructing
Browse files Browse the repository at this point in the history
  • Loading branch information
ruflin committed Dec 5, 2019
1 parent a6a1f66 commit 1bcdd5e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ test('getBaseName', () => {
type: 'logs',
} as Dataset;
const name = getDatasetAssetBaseName(dataset);
expect(name).toStrictEqual('logs-default-bar-foo');
expect(name).toStrictEqual('logs-default-foo-bar');
});
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ const DEFAULT_LABEL = 'default';
* {type}-{label}-{package}-{datasetName}
*/
export function getDatasetAssetBaseName(dataset: Dataset): string {
return dataset.type + '-' + DEFAULT_LABEL + '-' + dataset.package + '-' + dataset.name;
return `${dataset.type}-${DEFAULT_LABEL}-${dataset.package}-${dataset.name}`;
}

0 comments on commit 1bcdd5e

Please sign in to comment.