Skip to content

Fix Broken Test for firebaseTsFromISO() in time.js #118

Description

@zghera

Issue summary

Because Timestamp was mocked in time.test.js the new test for firebaseTsFromISO fails because the constructor for Timestamp is not mocked. So constructor either needs to also be mocked or a workaround for using the real constructor in this test should be found (maybe something like this).

Expected behavior

Test firestore Timestamp format test in time.test.js passes.

Actual behavior

Test firestore Timestamp format test in time.test.js fails.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions