IEEE.org
|
IEEE Xplore Digital Library
|
IEEE Standards
|
IEEE Spectrum
|
More Sites
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Open at RIT
My Conservation Life
Conservation360
Commits
575b890b
Commit
575b890b
authored
Feb 18, 2020
by
APalumbo97
Browse files
Fixing tests.
parent
809edb00
Changes
3
Hide whitespace changes
Inline
Side-by-side
db/api/package-lock.json
View file @
575b890b
...
...
@@ -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"
,
...
...
db/api/v1/db/__tests__/assetDefinitions.db.test.js
View file @
575b890b
...
...
@@ -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
});
salesforce/my-conservation-life/force-app/main/default/lwc/controllers/__tests__/assetDefinitionsController.test.js
View file @
575b890b
...
...
@@ -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
);
});
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment