feat: 🎸 Add aliases to list view (#2256)

✅ Closes: https://hashicorp.atlassian.net/browse/ICU-13487
This commit is contained in:
Zhihe Li authored and GitHub committed 2024-04-19 16:18:32 -04:00
1 parent f246c24a08
commit 79a932bebb
11 files changed
+162 -89

No files matched your search

@@ -5,6 +5,8 @@
import sinon from 'sinon';
import { typeOf } from '@ember/utils';
import { resourceNames } from 'api/handlers/client-daemon-handler';
import { singularize } from 'ember-inflector';
/**
* This test helper can be used to help setup your sinon stubs in your tests.
@@ -99,7 +101,8 @@ export default function setupStubs(hooks) {
resource = type.resource;
}
sinon.assert.match(ipcCall.args[1], { resource });
const mappedResourceName = resourceNames[singularize(resource)];
sinon.assert.match(ipcCall.args[1], { resource: mappedResourceName });
});
sinon.restore();