forked from Github/frigate
test(web): App
This commit is contained in:
committed by
Blake Blackshear
parent
c12aec7c8f
commit
3348f04889
@@ -1 +0,0 @@
|
||||
export const baseUrl = 'http://base-url.local:5000';
|
||||
@@ -2,8 +2,6 @@ import { h } from 'preact';
|
||||
import { ApiProvider, useFetch, useApiHost } from '..';
|
||||
import { render, screen } from '@testing-library/preact';
|
||||
|
||||
jest.mock('../baseUrl');
|
||||
|
||||
describe('useApiHost', () => {
|
||||
test('is set from the baseUrl', async () => {
|
||||
function Test() {
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
export const baseUrl = import.meta.env.SNOWPACK_PUBLIC_API_HOST || window.baseUrl || '';
|
||||
import { API_HOST } from '../env';
|
||||
export const baseUrl = API_HOST || window.baseUrl || '';
|
||||
|
||||
Reference in New Issue
Block a user