<commit_before>/* eslint-env mocha */
/* global expect, testContext */
/* eslint-disable prefer-arrow-callback, no-unused-expressions, max-nested-callbacks */
import stubs from 'src/test/stubs'
import factory from 'src/test/factories'
import {withDBCleanup, mockIdmUsersById, useFixture} from 'src/test/helpers'

describe(testContext(__filename), function () {
  withDBCleanup()
  beforeEach(function () {
    stubs.chatService.enable()
  })
  afterEach(function () {
    stubs.chatService.disable()
  })

  beforeEach('setup data & mocks', async function () {
    useFixture.nockClean()
    this.project = await factory.build('project')
    this.users = await mockIdmUsersById(this.project.playerIds)
  })

  const chatService = require('src/server/services/chatService')
  const ensureProjectArtifactIsSet = require('../ensureProjectArtifactIsSet')

  it('send a team DM when there is no artificat set', async function () {
    this.project.artifactURL = null<commit_msg>fixing tests broken by merge<commit_after>/* eslint-env mocha */
/* global expect, testContext */
/* eslint-disable prefer-arrow-callback, no-unused-expressions, max-nested-callbacks */
import stubs from 'src/test/stubs'
import factory from 'src/test/factories'
import {resetDB, mockIdmUsersById, useFixture} from 'src/test/helpers'

describe(testContext(__filename), function () {
  beforeEach(resetDB)

  beforeEach(function () {
    stubs.chatService.enable()
  })
  afterEach(function () {
    stubs.chatService.disable()
  })

  beforeEach('setup data & mocks', async function () {
    useFixture.nockClean()
    this.project = await factory.build('project')
    this.users = await mockIdmUsersById(this.project.playerIds)
  })

  const chatService = require('src/server/services/chatService')
  const ensureProjectArtifactIsSet = require('../ensureProjectArtifactIsSet')

  it('send a team DM when there is no artificat set', async function () {
    this.project.artifactURL = null
{'fraction_non_alphanumeric': 0.12551020408163266, 'fraction_numerical': 0.0, 'mean_word_length': 4.602857142857143, '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': '254938', 'n_tokens_mistral': 598, 'n_tokens_neox': 592, 'n_words': 129}