<commit_before>const expect = require('expect');
const Projects = require('../../lib/plugins/projects');
const Context = require('../../lib/context');
const payload = require('../fixtures/webhook/issue.created.json');

const createSpy = expect.createSpy;

describe('projects plugin', () => {
  let context;
  let github;

  before(() => {
    github = {
      projects: {
        createProjectCard: createSpy(),
        getProjectColumns: createSpy(),
        getRepoProjects: createSpy()
      }
    };
    context = new Context(github, {payload});
    this.projects = new Projects();
  });

  describe('createCard', () => {
    it('creates a project card', () => {
      this.projects.createCard(context, {project:'myProject', column:'New'}).then(() => {
        expect(github.issues.create).toHaveBeenCalled({
        });
      });
    });
  });
});<commit_msg>fix error in test and update<commit_after>const expect = require('expect');
const Projects = require('../../lib/plugins/projects');
const Context = require('../../lib/context');
const payload = require('../fixtures/webhook/issue.created.json');

const createSpy = expect.createSpy;

describe('projects plugin', () => {
  let context;
  let github;

  before(() => {
    github = {
      projects: {
        createProjectCard: createSpy(),
        getProjectColumns: createSpy(),
        getRepoProjects: createSpy()
      }
    };
    context = new Context(github, {payload});
    this.projects = new Projects();
  });

  describe('createCard', () => {
    it('creates a project card', () => {
      this.projects.createCard(context, {project:'myProject', column:'New'}).then(() => {
        expect(github.projects.getRepoProjects).toHaveBeenCalledWith({
          owner: 'pholleran',
          repo: 'test'
        });
      });
    });
  });
});
{'fraction_non_alphanumeric': 0.1838763114301491, 'fraction_numerical': 0.0, 'mean_word_length': 3.026666666666667, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '5867459', 'n_tokens_mistral': 533, 'n_tokens_neox': 523, 'n_words': 101}