Skip to content

Instantly share code, notes, and snippets.

View theghostyced's full-sized avatar
👻
If it has to do with design, am all in 😋🤓

Daniel Eze theghostyced

👻
If it has to do with design, am all in 😋🤓
View GitHub Profile
@theghostyced
theghostyced / machine.js
Last active July 10, 2020 20:25
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
```
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/Users/danieleze/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
@theghostyced
theghostyced / auth.test.js
Last active November 24, 2018 15:02
A simple login Authentication test
import chai from 'chai-http';
import requestAgent from 'supertest';
import server from './server';
// Destructuring our expect file from chai
const { expect } = chai;
// Our various custom messages that have been abstracted.
import {
LOGIN_ERROR_MSG,