Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

149 B
Raw Blame
'use strict';

it('should fail if in a worker', function() {
  if (!require('workerpool').isMainThread) {
    throw new Error('in worker!');
  }
});