/* eslint-disable prefer-arrow-callback, func-names */
/* eslint-env mocha */
import { chai } from 'meteor/practicalmeteor:chai';
import { setup, breakdown } from './setup';

const { TemplateInstance } = Blaze;

describe('setup', function () {
  beforeEach(function () {
    breakdown();
  });

  it('should add functions to the TemplateInstance prototype', function () {
    setup();

    chai.expect(TemplateInstance.prototype.gqlQuery).to.be.ok;
    chai.expect(TemplateInstance.prototype.queriesReady).to.be.ok;
  });
});

/* eslint-disable prefer-arrow-callback, func-names */
/* eslint-env mocha */
import { chai } from 'meteor/practicalmeteor:chai';
import { setup, breakdown } from './setup';

const { TemplateInstance } = Blaze;

describe('setup', function () {
  beforeEach(function () {
    breakdown();
  });

  it('should add functions to the TemplateInstance prototype', function () {
    setup();

    chai.expect(TemplateInstance.prototype.gqlQuery).to.be.ok;
    chai.expect(TemplateInstance.prototype.gqlMutate).to.be.ok;
    chai.expect(TemplateInstance.prototype.gqlSubscribe).to.be.ok;
    chai.expect(TemplateInstance.prototype.queriesReady).to.be.ok;
  });
});

Make sure gql functions are availabel
Make sure gql functions are availabel
