Closed tomsmith8 closed 7 months ago
assign
@tomsmith8
isSphinx()
does not have else block, Can you please confirm if this is correct? It appears that when isSphinx()
is false, both localStorage.removeItem
and buyLsat
will be executed twice.
https://github.com/stakwork/sphinx-nav-fiber/blob/master/src/utils/payLsat/index.ts#L11
Task
Add tests for buying Lsat here: https://github.com/stakwork/sphinx-nav-fiber/blob/master/src/utils/payLsat/index.ts
Example boiler plate:
Acceptance Criteria
payLsat
fileTest sphinx.enable returns true and local storage has an LSAT:
Test sphinx.enable returns true but local storage does not have an LSAT:
Test sphinx.enable returns false: