Skip to content

Instantly share code, notes, and snippets.

Avatar

Eddyystop eddyystop

  • Azeroth
View GitHub Profile
@eddyystop
eddyystop / a-l-m+plugins+options
Last active Dec 23, 2018
a-l-m / plugins/ options
View a-l-m+plugins+options
const optionsDefault = {
app: null, // Value set during configuration.
service: '/users',
path: 'authManagement',
emailField: 'email',
dialablePhoneField: 'dialablePhone',
passwordField: 'password',
longTokenLen: 15,
shortTokenLen: 6,
shortTokenDigits: true,
@eddyystop
eddyystop / testing-discard.js
Created Sep 18, 2018
Medium article "Automatic tests with feathers-plus/cli" - discard hook - part 1
View testing-discard.js
// Scaffolding generated
contextBefore = {
type: 'before',
params: { provider: 'socketio' },
data: {
}
};
contextAfter = {
@eddyystop
eddyystop / actual-discard.unit.test.js
Created Sep 18, 2018
For Medium article "Automatic tests with feathers-plus/cli"
View actual-discard.unit.test.js
const assert = require('assert');
const discard = require('../../src/hooks/discard');
describe('Test /hooks/discard.unit.test.js', () => {
// eslint-disable-next-line no-unused-vars
let contextBefore, contextAfterPaginated,
// eslint-disable-next-line no-unused-vars
contextAfter, contextAfterMultiple;
@eddyystop
eddyystop / template-discard.unit.test.js
Last active Sep 18, 2018
Template generated by feathers-plus/cli for a hook unit test
View template-discard.unit.test.js
const assert = require('assert');
const verifyEmail = require('../../../../src/hooks/discard');
describe('Test /hooks/discard.unit.test.js', () => {
// eslint-disable-next-line no-unused-vars
let contextBefore, contextAfterPaginated,
// eslint-disable-next-line no-unused-vars
contextAfter, contextAfterMultiple;
beforeEach(() => {
You can’t perform that action at this time.