message: test: mod case
diff: @@ -5,7 +5,7 @@ import os from 'os';
  import Bluebird from 'bluebird';
  import { createTmpFactory, TmpFile } from '../../lib/utils/tmp-helper';
  -test.after(async () => {
  +test.after.always(async () => {
  const dir = path.join(os.tmpdir(), 'surgio-config', 'tmp-helper-test-folder');
  if (fs.existsSync(dir)) {
  await fs.remove(dir);
  @@ -22,7 +22,7 @@ test('should work', async t => {
  const factory = createTmpFactory('tmp-helper-test-folder');
  const tmp = factory('tmp1.txt');
  - t.true(await tmp.getContent() === void 0);
  + t.is(await tmp.getContent(), void 0);
  await tmp.setContent('123456abcdef');
  t.is(await tmp.getContent(), '123456abcdef');
  t.is(await tmp.getContent(), '123456abcdef');
  @@ -30,12 +30,13 @@ test('should work', async t => {
  test('should work with maxAge 1', async t => {
  const factory = createTmpFactory('tmp-helper-test-folder');
  - const tmp = factory('tmp2.txt', 10);
  + const tmp = factory('tmp2.txt', 50);
  - t.true(await tmp.getContent() === void 0);
  + t.is(await tmp.getContent(), void 0);
  await tmp.setContent('123456abcdef');
  + t.is(await tmp.getContent(), '123456abcdef');
  await Bluebird.delay(100);
  - t.true(await tmp.getContent() === void 0);
  + t.is(await tmp.getContent(), void 0);
  await tmp.setContent('123456abcdefg');
  t.is(await tmp.getContent(), '123456abcdefg');
  t.is(await tmp.getContent(), '123456abcdefg');
  @@ -45,8 +46,8 @@ test('should work with maxAge 2', async t => {
  const factory = createTmpFactory('tmp-helper-test-folder');
  const tmp = factory('tmp3.txt', 200);
  - t.true(await tmp.getContent() === void 0);
  + t.is(await tmp.getContent(), void 0);
  await tmp.setContent('123456abcdef');
  await Bluebird.delay(100);
  - t.true(await tmp.getContent() === '123456abcdef');
  + t.is(await tmp.getContent(), '123456abcdef');
  });
  