Look at LSB init scripts for more information.
Copy to /etc/init.d
:
# replace "$YOUR_SERVICE_NAME" with your service's name
import {fetchRestaurants, RESTAURANTS_URL} from '../utils' | |
import * as fixtures from '../fixtures' | |
jest.spyOn(global, 'fetch') | |
describe('fetchRestaurants', ()=>{ | |
beforeEach(()=>{ | |
global.fetch.mockClear() | |
global.fetch.mockResolvedValue({text: ()=>JSON.stringify(fixtures.dummyRestaurants)}) |
.App { | |
display: flex; | |
flex-direction: column; | |
height: 100vh; | |
color: white; | |
overflow: hidden; | |
} | |
.App-header { |
Look at LSB init scripts for more information.
Copy to /etc/init.d
:
# replace "$YOUR_SERVICE_NAME" with your service's name