IEEE.org     |     IEEE Xplore Digital Library     |     IEEE Standards     |     IEEE Spectrum     |     More Sites

Commit 575b890b authored by APalumbo97's avatar APalumbo97
Browse files

Fixing tests.

parent 809edb00
......@@ -3896,8 +3896,7 @@
"lodash": {
"version": "4.17.15",
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz",
"integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==",
"dev": true
"integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A=="
},
"lodash.sortby": {
"version": "4.7.0",
......
......@@ -159,6 +159,7 @@ describe('assetDefinitions.db.storeCSV', () => {
it('finds all asset types in the database', async () => {
const actualRows = await findAssetTypes();
expect(actualRows).toEqual(rows);
expect(query).toHaveBeenCalledWith(expect.stringContaining('asset_type'));
});
});
......@@ -181,7 +182,7 @@ describe('assetDefinitions.db.storeCSV', () => {
});
});
// TODO tests for storeCSV function
});
......@@ -35,6 +35,7 @@ describe('assetDefinitions.findAssetPropTypes', () => {
it('finds all the asset properties for a given asset type', async () => {
const assetPropTypes = await assetDefinitions.fetchAssetPropTypes(1);
expect(fetch.mock.calls[0][0]).toBe(URL);
expect(fetch.mock.calls[0][1]).toEqual(expect.objectContaining(1));
expect(assetPropTypes).toEqual(EXPECTED_ASSET_PROP_TYPES);
});
});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment