This file contains 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
//THIS MODEL INHERITS FROM THE OTHER TABLE | |
import inheritFrom form './inheritFrom' | |
import inherittedModel from './inherittedModel' | |
export default function(sequelize, DataTypes) { | |
const ChildModel = inheritFrom(sequelize, DataTypes)('childModel', inherittedModel, { | |
// define child model specific properties here | |
id: Sequelize.INTEGER, | |
some_model_id: Sequelize.INTEGER |
This file contains 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
import _ from 'lodash' | |
import blacklist from 'blacklist' | |
import React, {Component, PropTypes} from 'react' | |
import ReactDOM from 'react-dom' | |
let Medium; | |
if (typeof document !== 'undefined') { | |
Medium = require('medium-editor'); | |
} |
This file contains 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
//PUT YOUR SHIT HERE | |
//var detectDupes = require('YOUR JUNK IN THE TRUNK'); | |
var chai = require('chai'); | |
var expect = chai.expect; | |
var moment = require('moment'); | |
var _ = require('lodash-node'); | |
describe('Order Dup Test', function(){ | |
var order = { |