Skip to content

Commit

Permalink
fix: formatAppURL supports relative path
Browse files Browse the repository at this point in the history
  • Loading branch information
tinymins committed Feb 22, 2024
1 parent 64ea688 commit 50845e4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/__tests__/unit/utils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ describe('utils', () => {
expect(Utils.formatAppURL(null)).toBe('')
expect(Utils.formatAppURL('')).toBe('')
expect(Utils.formatAppURL('htt://abc')).toBe('')
expect(Utils.formatAppURL('abc')).toBe('')
expect(jestConsoleError).toBeCalledWith('[micro-app]', expect.anything())
expect(Utils.formatAppURL('abc')).toBe('http://localhost/abc/')
})

test('utils ==> getEffectivePath', () => {
Expand Down

0 comments on commit 50845e4

Please sign in to comment.