Skip to content

Instantly share code, notes, and snippets.

@aryo
aryo / dialog.test.js
Last active May 31, 2018 04:57
MUI Dialog test with enzyme
/* some component w/ Dialog */
class SomeComponent extends React.Component {
constructor(props) {
super(props);
this.state = { tapped: false }
}
render() {
return (
<Dialog

Keybase proof

I hereby claim:

  • I am aryo on github.
  • I am aryo (https://keybase.io/aryo) on keybase.
  • I have a public key ASC-RIr11xzpWeFEEliS6NIFS1ipsnOiVGQn_toN28NV8Ao

To claim this, I am signing this object:

@aryo
aryo / gulpfile.js
Created June 22, 2016 02:12
Gulpfile.js for yeoman + angular: correctly wires bower dependencies into index.html; reversions and renames js+css but not index.html itself
'use strict';
var gulp = require('gulp');
var $ = require('gulp-load-plugins')();
var openURL = require('open');
var lazypipe = require('lazypipe');
var rimraf = require('rimraf');
var wiredep = require('wiredep').stream;
var runSequence = require('run-sequence');