Skip to content

Commit

Permalink
refactor: destrucure access to lab.describe and lab.it
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianMurphy committed Nov 19, 2017
1 parent 46e708a commit 130368d
Show file tree
Hide file tree
Showing 40 changed files with 40 additions and 120 deletions.
4 changes: 1 addition & 3 deletions test/index.js
Expand Up @@ -15,9 +15,7 @@ const OAuth = require('../lib/oauth');

// Test shortcuts

const lab = exports.lab = Lab.script();
const describe = lab.describe;
const it = lab.it;
const { describe, it } = exports.lab = Lab.script();


const privateKey = require('./constants.json').privateKey;
Expand Down
4 changes: 1 addition & 3 deletions test/oauth.js
Expand Up @@ -14,9 +14,7 @@ const OAuth = require('../lib/oauth');

// Test shortcuts

const lab = exports.lab = Lab.script();
const describe = lab.describe;
const it = lab.it;
const { describe, it } = exports.lab = Lab.script();
const privateKey = require('./constants.json').privateKey;

describe('Bell', () => {
Expand Down
4 changes: 1 addition & 3 deletions test/providers/arcgisonline.js
Expand Up @@ -12,9 +12,7 @@ const Mock = require('../mock');

// Test shortcuts

const lab = exports.lab = Lab.script();
const describe = lab.describe;
const it = lab.it;
const { describe, it } = exports.lab = Lab.script();


describe('arcgisonline', () => {
Expand Down
4 changes: 1 addition & 3 deletions test/providers/auth0.js
Expand Up @@ -12,9 +12,7 @@ const Mock = require('../mock');

// Test shortcuts

const lab = exports.lab = Lab.script();
const describe = lab.describe;
const it = lab.it;
const { describe, it } = exports.lab = Lab.script();


describe('auth0', () => {
Expand Down
4 changes: 1 addition & 3 deletions test/providers/azuread.js
Expand Up @@ -12,9 +12,7 @@ const Mock = require('../mock');

// Test shortcuts

const lab = exports.lab = Lab.script();
const describe = lab.describe;
const it = lab.it;
const { describe, it } = exports.lab = Lab.script();


// Test helpers
Expand Down
4 changes: 1 addition & 3 deletions test/providers/bitbucket.js
Expand Up @@ -12,9 +12,7 @@ const Mock = require('../mock');

// Test shortcuts

const lab = exports.lab = Lab.script();
const describe = lab.describe;
const it = lab.it;
const { describe, it } = exports.lab = Lab.script();


describe('bitbucket', () => {
Expand Down
4 changes: 1 addition & 3 deletions test/providers/digitalocean.js
Expand Up @@ -12,9 +12,7 @@ const Mock = require('../mock');

// Test shortcuts

const lab = exports.lab = Lab.script();
const describe = lab.describe;
const it = lab.it;
const { describe, it } = exports.lab = Lab.script();


describe('digitalocean', () => {
Expand Down
4 changes: 1 addition & 3 deletions test/providers/discord.js
Expand Up @@ -12,9 +12,7 @@ const Mock = require('../mock');

// Test shortcuts

const lab = exports.lab = Lab.script();
const describe = lab.describe;
const it = lab.it;
const { describe, it } = exports.lab = Lab.script();


describe('discord', () => {
Expand Down
4 changes: 1 addition & 3 deletions test/providers/dropbox-v2.js
Expand Up @@ -12,9 +12,7 @@ const Mock = require('../mock');

// Test shortcuts

const lab = exports.lab = Lab.script();
const describe = lab.describe;
const it = lab.it;
const { describe, it } = exports.lab = Lab.script();


describe('dropbox-v2', () => {
Expand Down
4 changes: 1 addition & 3 deletions test/providers/dropbox.js
Expand Up @@ -12,9 +12,7 @@ const Mock = require('../mock');

// Test shortcuts

const lab = exports.lab = Lab.script();
const describe = lab.describe;
const it = lab.it;
const { describe, it } = exports.lab = Lab.script();


describe('dropbox', () => {
Expand Down
4 changes: 1 addition & 3 deletions test/providers/facebook.js
Expand Up @@ -12,9 +12,7 @@ const Mock = require('../mock');

// Test shortcuts

const lab = exports.lab = Lab.script();
const describe = lab.describe;
const it = lab.it;
const { describe, it } = exports.lab = Lab.script();

describe('facebook', () => {

Expand Down
4 changes: 1 addition & 3 deletions test/providers/fitbit.js
Expand Up @@ -12,9 +12,7 @@ const Mock = require('../mock');

// Test shortcuts

const lab = exports.lab = Lab.script();
const describe = lab.describe;
const it = lab.it;
const { describe, it } = exports.lab = Lab.script();


describe('fitbit', () => {
Expand Down
4 changes: 1 addition & 3 deletions test/providers/foursquare.js
Expand Up @@ -12,9 +12,7 @@ const Mock = require('../mock');

// Test shortcuts

const lab = exports.lab = Lab.script();
const describe = lab.describe;
const it = lab.it;
const { describe, it } = exports.lab = Lab.script();


describe('foursquare', () => {
Expand Down
4 changes: 1 addition & 3 deletions test/providers/github.js
Expand Up @@ -12,9 +12,7 @@ const Mock = require('../mock');

// Test shortcuts

const lab = exports.lab = Lab.script();
const describe = lab.describe;
const it = lab.it;
const { describe, it } = exports.lab = Lab.script();


describe('github', () => {
Expand Down
4 changes: 1 addition & 3 deletions test/providers/gitlab.js
Expand Up @@ -12,9 +12,7 @@ const Mock = require('../mock');

// Test shortcuts

const lab = exports.lab = Lab.script();
const describe = lab.describe;
const it = lab.it;
const { describe, it } = exports.lab = Lab.script();


describe('gitlab', () => {
Expand Down
4 changes: 1 addition & 3 deletions test/providers/google.js
Expand Up @@ -12,9 +12,7 @@ const Mock = require('../mock');

// Test shortcuts

const lab = exports.lab = Lab.script();
const describe = lab.describe;
const it = lab.it;
const { describe, it } = exports.lab = Lab.script();


describe('google', () => {
Expand Down
4 changes: 1 addition & 3 deletions test/providers/googleplus.js
Expand Up @@ -12,9 +12,7 @@ const Mock = require('../mock');

// Test shortcuts

const lab = exports.lab = Lab.script();
const describe = lab.describe;
const it = lab.it;
const { describe, it } = exports.lab = Lab.script();


describe('googleplus', () => {
Expand Down
4 changes: 1 addition & 3 deletions test/providers/instagram.js
Expand Up @@ -12,9 +12,7 @@ const Mock = require('../mock');

// Test shortcuts

const lab = exports.lab = Lab.script();
const describe = lab.describe;
const it = lab.it;
const { describe, it } = exports.lab = Lab.script();


describe('instagram', () => {
Expand Down
4 changes: 1 addition & 3 deletions test/providers/linkedin.js
Expand Up @@ -12,9 +12,7 @@ const Mock = require('../mock');

// Test shortcuts

const lab = exports.lab = Lab.script();
const describe = lab.describe;
const it = lab.it;
const { describe, it } = exports.lab = Lab.script();


describe('linkedin', () => {
Expand Down
4 changes: 1 addition & 3 deletions test/providers/live.js
Expand Up @@ -12,9 +12,7 @@ const Mock = require('../mock');

// Test shortcuts

const lab = exports.lab = Lab.script();
const describe = lab.describe;
const it = lab.it;
const { describe, it } = exports.lab = Lab.script();


describe('live', () => {
Expand Down
4 changes: 1 addition & 3 deletions test/providers/medium.js
Expand Up @@ -12,9 +12,7 @@ const Mock = require('../mock');

// Test shortcuts

const lab = exports.lab = Lab.script();
const describe = lab.describe;
const it = lab.it;
const { describe, it } = exports.lab = Lab.script();


describe('medium', () => {
Expand Down
4 changes: 1 addition & 3 deletions test/providers/meetup.js
Expand Up @@ -12,9 +12,7 @@ const Mock = require('../mock');

// Test shortcuts

const lab = exports.lab = Lab.script();
const describe = lab.describe;
const it = lab.it;
const { describe, it } = exports.lab = Lab.script();


describe('meetup', () => {
Expand Down
4 changes: 1 addition & 3 deletions test/providers/mixer.js
Expand Up @@ -12,9 +12,7 @@ const Mock = require('../mock');

// Test shortcuts

const lab = exports.lab = Lab.script();
const describe = lab.describe;
const it = lab.it;
const { describe, it } = exports.lab = Lab.script();


describe('mixer', () => {
Expand Down
4 changes: 1 addition & 3 deletions test/providers/nest.js
Expand Up @@ -12,9 +12,7 @@ const Mock = require('../mock');

// Test shortcuts

const lab = exports.lab = Lab.script();
const describe = lab.describe;
const it = lab.it;
const { describe, it } = exports.lab = Lab.script();


describe('nest', () => {
Expand Down
4 changes: 1 addition & 3 deletions test/providers/office365.js
Expand Up @@ -12,9 +12,7 @@ const Mock = require('../mock');

// Test shortcuts

const lab = exports.lab = Lab.script();
const describe = lab.describe;
const it = lab.it;
const { describe, it } = exports.lab = Lab.script();


describe('office365', () => {
Expand Down
4 changes: 1 addition & 3 deletions test/providers/okta.js
Expand Up @@ -11,9 +11,7 @@ const Mock = require('../mock');

// Test shortcuts

const lab = exports.lab = Lab.script();
const describe = lab.describe;
const it = lab.it;
const { describe, it } = exports.lab = Lab.script();

describe('Okta', () => {

Expand Down
4 changes: 1 addition & 3 deletions test/providers/phabricator.js
Expand Up @@ -12,9 +12,7 @@ const Mock = require('../mock');

// Test shortcuts

const lab = exports.lab = Lab.script();
const describe = lab.describe;
const it = lab.it;
const { describe, it } = exports.lab = Lab.script();


describe('phabricator', () => {
Expand Down
4 changes: 1 addition & 3 deletions test/providers/pingfed.js
Expand Up @@ -12,9 +12,7 @@ const Mock = require('../mock');

// Test shortcuts

const lab = exports.lab = Lab.script();
const describe = lab.describe;
const it = lab.it;
const { describe, it } = exports.lab = Lab.script();


describe('pingfed', () => {
Expand Down
4 changes: 1 addition & 3 deletions test/providers/pinterest.js
Expand Up @@ -12,9 +12,7 @@ const Mock = require('../mock');

// Test shortcuts

const lab = exports.lab = Lab.script();
const describe = lab.describe;
const it = lab.it;
const { describe, it } = exports.lab = Lab.script();

describe('pinterest', () => {

Expand Down
4 changes: 1 addition & 3 deletions test/providers/reddit.js
Expand Up @@ -12,9 +12,7 @@ const Mock = require('../mock');

// Test shortcuts

const lab = exports.lab = Lab.script();
const describe = lab.describe;
const it = lab.it;
const { describe, it } = exports.lab = Lab.script();


describe('reddit', () => {
Expand Down
4 changes: 1 addition & 3 deletions test/providers/salesforce.js
Expand Up @@ -12,9 +12,7 @@ const Mock = require('../mock');

// Test shortcuts

const lab = exports.lab = Lab.script();
const describe = lab.describe;
const it = lab.it;
const { describe, it } = exports.lab = Lab.script();


describe('salesforce', () => {
Expand Down
4 changes: 1 addition & 3 deletions test/providers/slack.js
Expand Up @@ -12,9 +12,7 @@ const Mock = require('../mock');

// Test shortcuts

const lab = exports.lab = Lab.script();
const describe = lab.describe;
const it = lab.it;
const { describe, it } = exports.lab = Lab.script();

describe('slack', () => {

Expand Down
4 changes: 1 addition & 3 deletions test/providers/spotify.js
Expand Up @@ -12,9 +12,7 @@ const Mock = require('../mock');

// Test shortcuts

const lab = exports.lab = Lab.script();
const describe = lab.describe;
const it = lab.it;
const { describe, it } = exports.lab = Lab.script();


describe('spotify', () => {
Expand Down
4 changes: 1 addition & 3 deletions test/providers/stripe.js
Expand Up @@ -12,9 +12,7 @@ const Mock = require('../mock');

// Test shortcuts

const lab = exports.lab = Lab.script();
const describe = lab.describe;
const it = lab.it;
const { describe, it } = exports.lab = Lab.script();


describe('stripe', () => {
Expand Down
4 changes: 1 addition & 3 deletions test/providers/tumblr.js
Expand Up @@ -12,9 +12,7 @@ const Mock = require('../mock');

// Test shortcuts

const lab = exports.lab = Lab.script();
const describe = lab.describe;
const it = lab.it;
const { describe, it } = exports.lab = Lab.script();


describe('tumblr', () => {
Expand Down
4 changes: 1 addition & 3 deletions test/providers/twitch.js
Expand Up @@ -12,9 +12,7 @@ const Mock = require('../mock');

// Test shortcuts

const lab = exports.lab = Lab.script();
const describe = lab.describe;
const it = lab.it;
const { describe, it } = exports.lab = Lab.script();


describe('twitch', () => {
Expand Down

0 comments on commit 130368d

Please sign in to comment.