Globals / “thing/mock”
Defined in src/thing/mock.ts:38
Function for use in unit tests to mock a Thing with a given URL.
Warning: do not use this function in actual production code. This function initialises a new empty Thing and sets its URL to a given URL. This is useful to mock a Thing in tests of code that call e.g. asUrl.