This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { Chrome } = require('navalia'); | |
const chrome = new Chrome(); | |
async function interactWithSearch() { | |
await chrome.goto('https://joelgriffith.github.io/navalia/'); | |
await chrome.focus('#search-input'); | |
await chrome.type('#search-input', 'coverage'); | |
return chrome.done(); | |
} | |
interactWithSearch(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { Chrome } = require('navalia'); | |
const chrome = new Chrome(); | |
chrome.goto('https://www.google.com') | |
.then(() => chrome.done()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// External dependencies | |
import React from 'react'; | |
import thunk from 'redux-thunk'; | |
import { render } from 'react-dom'; | |
import { Provider } from 'react-redux'; | |
import { routerReducer } from 'react-router-redux'; | |
import { BrowserRouter, Route, Switch } from 'react-router-dom'; | |
import { createStore, applyMiddleware, compose, combineReducers } from 'redux'; | |
import ApolloClient, { createNetworkInterface } from 'apollo-client'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Preferences | |
set number | |
syntax on | |
set nocompatible " be iMproved, required | |
filetype off " required | |
set tabstop=4 | |
set softtabstop=4 | |
" Set tabs to a > character | |
set list |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Mount FS as read/write | |
mount -rw -o remount / | |
# Delete old passwd... | |
sudo passwd -d <USERNAME> | |
# Set passwd | |
passwd | |
# Set shell! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* test.mpsec.js | |
*/ | |
var sinon = require('sinon'); | |
var expect = require('chai').expect; | |
var rewire = require('rewire'); | |
var main = rewire('main'); | |
var CoolModuleMock = (function() { | |
function CoolModuleMock() {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* object.watch polyfill | |
* | |
* 2012-04-03 | |
* | |
* By Eli Grey, http://eligrey.com | |
* Public Domain. | |
* NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Module Wrapper | |
*/ | |
(function (base, factory) { | |
'use strict'; | |
// RequireJS | |
if (typeof define === 'function' && define.amd) { | |
define(factory); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* The end-all module detection/exportation | |
*/ | |
(function(base, factory) { | |
// RequireJS | |
if (typeof define === "function" && define.amd) { | |
define(factory); | |
// CommonJS |