Skip to content

Instantly share code, notes, and snippets.

View griffinmyers's full-sized avatar
🆗
"feeling fine"

Will Myers griffinmyers

🆗
"feeling fine"
View GitHub Profile

The emojis in my comments have the following meaning:

Emoji Meaning & Expectation
👍   This rules. The submitter should bask in praise.
🔴   A blocking comment. If not addressed by a commit or discussion, the PR will not be approved.
❓   A clarifying question. If not responded to, the PR will not be approved.
🟡   A nitpick. It is the submitter’s discretion to address or not.
💡   A thought, possibly tangential. Not requiring any change, but may invite a discussion.
  Other: Comment defies categorization, and will explain its expectations.
type node =
| ListOfNodes(list(node))
| Int(int)
| Nil;
let example =
ListOfNodes([
Int(1),
Nil,
ListOfNodes([
package main
import (
"fmt"
"github.com/hashicorp/hcl"
)
func main() {
type Template struct {
const fs = require('fs');
const path = require('path');
const imageDiff = require('image-diff');
const testCases = fs.readdirSync(path.join('/', 'visual-diff', 'results'));
const expectations = fs.readdirSync(path.join(__dirname, 'expectations'));
const localBasePath = path.join('test', 'visual-diff');
const dockerBasePath = path.join('/', 'visual-diff');
const Jasmine = require('jasmine');
const SpecReporter = require('jasmine-spec-reporter');
const runner = new Jasmine();
runner.configureDefaultReporter({ print: function() {} });
runner.addReporter(new SpecReporter());
runner.loadConfig({
spec_dir: 'test/visual-diff',
spec_files: ['diff-test.js'],
describe('visual-diff', function() {
it('renders a Button', function(done) {
var button = new Button({
title: 'Everythings OK Alarm',
subtitle: 'The alarm will make a sound every three seconds',
cost: '$$$$',
cta: 'Order now',
image: '/base/test/assets/homer.jpg'
});
const path = require('path');
const karma = require('karma');
const Server = karma.Server;
const server = new Server({
configFile: path.join(__dirname, 'render-karma.conf.js')
}, process.exit.bind(process));
// Make sure dirPath exists and is clean.
// `name`: The image filename
// `done`: A function provided by jasmine to invoke when we're finished
// rendering
window.renderScreen = function renderScreen(name, done) {
setTimeout(function() {
window.top.callPhantom({ type: 'render', name: name });
done();
}, 500);
}
'use strict';
module.exports = config => {
config.set({
basePath: '../../',
frameworks: ['jasmine'],
files: [
$ npm install --dev image-diff, jasmine, jasmine-spec-reporter, karma, karma-jasmine, karma-phantomjs-launcher, karma-spec-reporter