Skip to content

Instantly share code, notes, and snippets.

View sminutoli's full-sized avatar

S Minutoli sminutoli

View GitHub Profile
describe('Component Type and Props', function () {
it('should be a stateless component', ()=>{
expect(Login.prototype).toNotBeA(React.Component);
});
it('should have the correct props defined', ()=>{
var propTypes = {
username: PropTypes.string,
password: PropTypes.string,
@sminutoli
sminutoli / SassMeister-input.scss
Created December 9, 2015 19:08
Generated by SassMeister.com.
// ----
// Sass (v3.4.12)
// Compass (v1.0.3)
// ----
@mixin make-grid($name, $totalWidth, $gutter, $modules){
$moduleWidth: ($totalWidth - ( $modules - 1 )*$gutter ) / $modules;
@for $i from 1 through $modules {
$finalWidth: $moduleWidth * $i + $gutter*($i - 1);
@sminutoli
sminutoli / SassMeister-input.scss
Last active August 29, 2015 14:19
Generated by SassMeister.com.
// ----
// Sass (v3.4.12)
// Compass (v1.0.3)
// ----
@mixin make-grid($name, $totalWidth, $gutter, $modules){
$moduleWidth: ($totalWidth - ( $modules - 1 )*$gutter ) / $modules;
@for $i from 1 through $modules {
$finalWidth: $moduleWidth * $i + $gutter*($i - 1);