Skip to content

Commit

Permalink
Fix and re-enable getAsset() test.
Browse files Browse the repository at this point in the history
  • Loading branch information
skh committed Oct 5, 2020
1 parent 523d8dc commit ff2006f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ const tests = [
return true;
},
expected: [
'coredns-1.0.1/dataset/log/elasticsearch/ingest-pipeline/pipeline-plaintext.json',
'coredns-1.0.1/dataset/log/elasticsearch/ingest-pipeline/pipeline-json.json',
'coredns-1.0.1/data_stream/log/elasticsearch/ingest-pipeline/pipeline-plaintext.json',
'coredns-1.0.1/data_stream/log/elasticsearch/ingest-pipeline/pipeline-json.json',
],
},
{
Expand Down Expand Up @@ -60,7 +60,7 @@ const tests = [
},
];

test.skip('testGetAssets', () => {
test('testGetAssets', () => {
for (const value of tests) {
// as needed to pretend it is an InstallablePackage
const assets = getAssets(value.package as InstallablePackage, value.filter, value.dataset);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export function getAssets(

// if dataset, filter for them
if (datasetName) {
const comparePath = `${packageInfo.name}-${packageInfo.version}/datastream/${datasetName}/`;
const comparePath = `${packageInfo.name}-${packageInfo.version}/data_stream/${datasetName}/`;
if (!path.includes(comparePath)) {
continue;
}
Expand Down

0 comments on commit ff2006f

Please sign in to comment.