aboutsummaryrefslogtreecommitdiff
path: root/test/content/repositories
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2019-12-22 11:10:36 +0900
committerGitHub <noreply@github.com>2019-12-22 11:10:36 +0900
commitb1a6f374dca078dee2406ebe049715b826e37ca2 (patch)
tree5367c48648e2018f55f12d847baba94559e10040 /test/content/repositories
parentb2dcdedad729ff7087867da50e20578f9fc8fb29 (diff)
parentda72c2ddd916d79d134662e3985b53a4ac78af7a (diff)
Merge pull request #690 from ueokande/eslint-and-prettier
Eslint and prettier
Diffstat (limited to 'test/content/repositories')
-rw-r--r--test/content/repositories/AddonEnabledRepository.test.ts2
-rw-r--r--test/content/repositories/FindRepository.test.ts2
-rw-r--r--test/content/repositories/FollowMasterRepository.test.ts2
-rw-r--r--test/content/repositories/KeymapRepository.test.ts10
-rw-r--r--test/content/repositories/MarkRepository.test.ts2
-rw-r--r--test/content/repositories/SettingRepository.test.ts6
6 files changed, 12 insertions, 12 deletions
diff --git a/test/content/repositories/AddonEnabledRepository.test.ts b/test/content/repositories/AddonEnabledRepository.test.ts
index 3cea897..7edd50e 100644
--- a/test/content/repositories/AddonEnabledRepository.test.ts
+++ b/test/content/repositories/AddonEnabledRepository.test.ts
@@ -3,7 +3,7 @@ import { expect } from 'chai';
describe('AddonEnabledRepositoryImpl', () => {
it('updates and gets current value', () => {
- let sut = new AddonEnabledRepositoryImpl();
+ const sut = new AddonEnabledRepositoryImpl();
sut.set(true);
expect(sut.get()).to.be.true;
diff --git a/test/content/repositories/FindRepository.test.ts b/test/content/repositories/FindRepository.test.ts
index dcb2dff..0e50b0a 100644
--- a/test/content/repositories/FindRepository.test.ts
+++ b/test/content/repositories/FindRepository.test.ts
@@ -3,7 +3,7 @@ import { expect } from 'chai';
describe('FindRepositoryImpl', () => {
it('updates and gets last keyword', () => {
- let sut = new FindRepositoryImpl();
+ const sut = new FindRepositoryImpl();
expect(sut.getLastKeyword()).to.be.null;
diff --git a/test/content/repositories/FollowMasterRepository.test.ts b/test/content/repositories/FollowMasterRepository.test.ts
index 8c3f34e..3eb172f 100644
--- a/test/content/repositories/FollowMasterRepository.test.ts
+++ b/test/content/repositories/FollowMasterRepository.test.ts
@@ -25,7 +25,7 @@ describe('FollowMasterRepositoryImpl', () => {
describe('#getTagsByPrefix', () => {
it('gets tags matched by prefix', () => {
- for (let tag of ['a', 'aa', 'ab', 'b', 'ba', 'bb']) {
+ for (const tag of ['a', 'aa', 'ab', 'b', 'ba', 'bb']) {
sut.addTag(tag);
}
expect(sut.getTagsByPrefix('a')).to.deep.equal(['a', 'aa', 'ab']);
diff --git a/test/content/repositories/KeymapRepository.test.ts b/test/content/repositories/KeymapRepository.test.ts
index df013df..68f515c 100644
--- a/test/content/repositories/KeymapRepository.test.ts
+++ b/test/content/repositories/KeymapRepository.test.ts
@@ -12,11 +12,11 @@ describe('KeymapRepositoryImpl', () => {
describe('#enqueueKey()', () => {
it('enqueues keys', () => {
- sut.enqueueKey(Key.fromMapKey('a');
- sut.enqueueKey(Key.fromMapKey('b');
- let sequence = sut.enqueueKey(Key.fromMapKey('c'));
+ sut.enqueueKey(Key.fromMapKey('a'));
+ sut.enqueueKey(Key.fromMapKey('b'));
+ const sequence = sut.enqueueKey(Key.fromMapKey('c'));
- let keys = sequence.keys;
+ const keys = sequence.keys;
expect(keys[0].equals(Key.fromMapKey('a'))).to.be.true;
expect(keys[1].equals(Key.fromMapKey('b'))).to.be.true;
expect(keys[2].equals(Key.fromMapKey('c'))).to.be.true;
@@ -30,7 +30,7 @@ describe('KeymapRepositoryImpl', () => {
sut.enqueueKey(Key.fromMapKey('c'));
sut.clear();
- let sequence = sut.enqueueKey(Key.fromMapKey('a'));
+ const sequence = sut.enqueueKey(Key.fromMapKey('a'));
expect(sequence.length()).to.equal(1);
});
});
diff --git a/test/content/repositories/MarkRepository.test.ts b/test/content/repositories/MarkRepository.test.ts
index 7fced5f..6ddd38d 100644
--- a/test/content/repositories/MarkRepository.test.ts
+++ b/test/content/repositories/MarkRepository.test.ts
@@ -3,7 +3,7 @@ import { expect } from 'chai';
describe('MarkRepositoryImpl', () => {
it('save and load marks', () => {
- let sut = new MarkRepositoryImpl();
+ const sut = new MarkRepositoryImpl();
sut.set('a', { x: 10, y: 20 });
expect(sut.get('a')).to.deep.equal({ x: 10, y: 20 });
diff --git a/test/content/repositories/SettingRepository.test.ts b/test/content/repositories/SettingRepository.test.ts
index db4c528..e45d7c4 100644
--- a/test/content/repositories/SettingRepository.test.ts
+++ b/test/content/repositories/SettingRepository.test.ts
@@ -4,9 +4,9 @@ import Settings from '../../../src/shared/settings/Settings';
describe('SettingRepositoryImpl', () => {
it('updates and gets current value', () => {
- let sut = new SettingRepositoryImpl();
+ const sut = new SettingRepositoryImpl();
- let settings = Settings.fromJSON({
+ const settings = Settings.fromJSON({
keymaps: {},
search:{
default: 'google',
@@ -24,7 +24,7 @@ describe('SettingRepositoryImpl', () => {
sut.set(settings);
- let actual = sut.get();
+ const actual = sut.get();
expect(actual.properties.hintchars).to.equal('abcd1234');
});
});