<commit_before>import {expect} from 'chai';
import create, {createTransferable} from '../src/core/create';

describe('create()', () => {
  let script = function() {
    /** */
    function timedMessage() {
      self.postMessage("Echo");
    }
    timedMessage();
  };
  it('should create a worker giving a script path', () => {
    let worker = create('/base/worker_scripts/simple_worker.js');
    expect(worker instanceof window.Worker).to.equal(true);
  });
  it('should create a worker giving a script', () => {
    let worker = create(script);
    expect(worker instanceof window.Worker).to.equal(true);
  });

  describe('createTransferable()', () => {
    it('should create an ObjectURL giving a script', () => {
      let transferable = createTransferable(script);
      expect(transferable).to.be.a('string');
    });
  });
});<commit_msg>fix broken test for  transferable function<commit_after>import {expect} from 'chai';
import create, {createTransferrable} from '../src/core/create';

describe('create()', () => {
  let script = function() {
    /** */
    function timedMessage() {
      self.postMessage("Echo");
    }
    timedMessage();
  };
  it('should create a worker giving a script path', () => {
    let worker = create('/base/worker_scripts/simple_worker.js');
    expect(worker instanceof window.Worker).to.equal(true);
  });
  it('should create a worker giving a script', () => {
    let worker = create(script);
    expect(worker instanceof window.Worker).to.equal(true);
  });

  describe('createTransferrable()', () => {
    it('should create an ObjectURL giving a script', () => {
      let transferable = createTransferrable(script);
      expect(transferable).to.be.a('string');
    });
  });
});
{'fraction_non_alphanumeric': 0.17476851851851852, 'fraction_numerical': 0.0, 'mean_word_length': 3.660377358490566, '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': '4969175', 'n_tokens_mistral': 507, 'n_tokens_neox': 500, 'n_words': 117}