Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

tests(server-core): unit tests for location #7775

Merged
merged 6 commits into from
Apr 7, 2023

Conversation

aditya-mitra
Copy link
Collaborator

Summary

Unit test for location service in server-core

References

Refs #5997

Checklist

  • If this PR is still a WIP, convert to a draft
  • When this PR is ready, mark it as "Ready for review"
  • ensure all checks pass
  • Changes have been manually QA'd
  • Changes reviewed by at least 2 approved reviewer

QA Steps

List any additional steps required to QA the changes of this PR, as well as any supplemental images or videos.

@aditya-mitra aditya-mitra marked this pull request as draft March 20, 2023 18:35
@aditya-mitra aditya-mitra changed the title tests(location): create location tests(server-core): unit tests for location Mar 20, 2023
@aditya-mitra aditya-mitra marked this pull request as ready for review March 22, 2023 17:47
@@ -249,7 +249,7 @@ export class Location<T = LocationDataType> extends Service<T> {

try {
// @ts-ignore
let { location_settings, ...locationData } = data
let { location_settings = {}, ...locationData } = data
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

locations should always be created with their associated settings, so i dont think this is necessary

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reverted this change!

},
{ where: { id: oldSettings.id }, transaction: t }
)
if (location_settings) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can probably revert this

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reverted!

@HexaField HexaField added this pull request to the merge queue Apr 7, 2023
Merged via the queue into EtherealEngine:dev with commit 3dfabc6 Apr 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants