Skip to content

Instantly share code, notes, and snippets.

View devbkhadka's full-sized avatar

Dev devbkhadka

  • SmartMobe Solutions PVT. LTD.
  • Kathmandu, Nepal
View GitHub Profile
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 {
@devbkhadka
devbkhadka / service.md
Last active May 26, 2021 13:07 — forked from miromannino/service.md
Sample /etc/init.d script

Sample service script for debian/ubuntu

Look at LSB init scripts for more information.

Usage

Copy to /etc/init.d:

# replace "$YOUR_SERVICE_NAME" with your service's name