import test from 'ava';
import * as fs from 'fs';
import * as path from 'path';
import findAssetButton from './findAssetButton';
var exists = ['赤色のスライム', 'プレイヤー'];
var notExists = ['スライム', '', null, undefined];
test('findAssetButton', function (t) {
  var asset = JSON.parse(fs.readFileSync(path.resolve(__dirname, '../../../beta-2.json'), 'utf8'));

  for (var _i = 0; _i < exists.length; _i++) {
    var name = exists[_i];
    t.not(findAssetButton(asset, name), null, "".concat(name, " is not exist"));
  }

  for (var _i2 = 0; _i2 < notExists.length; _i2++) {
    var _name = notExists[_i2];
    t.is(findAssetButton(asset, _name), null, "".concat(_name, " is exist"));
  }
});