<commit_before>/* 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;
  });
});<commit_msg>Make sure gql functions are availabel<commit_after>/* 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;
  });
});
{'fraction_non_alphanumeric': 0.15250198570293885, 'fraction_numerical': 0.0, 'mean_word_length': 4.384615384615385, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6093034', 'n_tokens_mistral': 399, 'n_tokens_neox': 386, 'n_words': 73}