move settings validator

jh-changes
Shin'ya Ueoka 7 years ago
parent c3d1535224
commit fbdec04786
  1. 2
      src/settings/components/index.jsx
  2. 0
      src/shared/settings/validator.js
  3. 2
      test/shared/settings/validator.test.js

@ -5,7 +5,7 @@ import SearchForm from './form/search-form';
import KeymapsForm from './form/keymaps-form'; import KeymapsForm from './form/keymaps-form';
import BlacklistForm from './form/blacklist-form'; import BlacklistForm from './form/blacklist-form';
import * as settingActions from 'settings/actions/setting'; import * as settingActions from 'settings/actions/setting';
import * as validator from 'shared/validators/setting'; import * as validator from 'shared/settings/validator';
import * as settingsValues from 'shared/settings/values'; import * as settingsValues from 'shared/settings/values';
const DO_YOU_WANT_TO_CONTINUE = const DO_YOU_WANT_TO_CONTINUE =

@ -1,5 +1,5 @@
import { expect } from "chai"; import { expect } from "chai";
import { validate } from 'shared/validators/setting'; import { validate } from 'shared/settings/validator';
describe("setting validator", () => { describe("setting validator", () => {
describe("unknown top keys", () => { describe("unknown top keys", () => {