Skip to content

Commit be339f3

Browse files
committed
refactor unittest descriptions
1 parent 6c1a9cd commit be339f3

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

test/symbol-store-tests.js

+9-9
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ const SymbolStore = require('../lib/symbol-store').SymbolStore;
2727

2828
chai.should();
2929

30-
describe('SymbolStore tests', function () {
31-
it('Empty', function () {
30+
describe('SymbolStore', function () {
31+
it('should be empty initially', function () {
3232
const store = new SymbolStore();
3333
store.listSymbols().length.should.equal(0);
3434
store.listTranslations().length.should.equal(0);
3535
});
3636

37-
it('One item', function () {
37+
it('should be able to add an item', function () {
3838
const store = new SymbolStore();
3939
store.add("test");
4040
store.listSymbols().length.should.equal(1);
@@ -47,7 +47,7 @@ describe('SymbolStore tests', function () {
4747
translations[0][1].should.equal("test");
4848
});
4949

50-
it('Duplicate items', function () {
50+
it('should not contain duplicate items', function () {
5151
const store = new SymbolStore();
5252
store.add("test");
5353
store.add("test");
@@ -61,7 +61,7 @@ describe('SymbolStore tests', function () {
6161
translations[0][1].should.equal("test");
6262
});
6363

64-
it('Sorted items', function () {
64+
it('should return a sorted list', function () {
6565
const store = new SymbolStore();
6666
store.add("test123");
6767
store.add("test123456");
@@ -73,7 +73,7 @@ describe('SymbolStore tests', function () {
7373
translations[1][0].should.equal("test123");
7474
});
7575

76-
it('Add-many', function () {
76+
it('should be able to add an array of items', function () {
7777
const store = new SymbolStore();
7878
store.addMany(["test123", "test123456", "test123"]);
7979
store.listSymbols().length.should.equal(2);
@@ -84,7 +84,7 @@ describe('SymbolStore tests', function () {
8484
translations[1][0].should.equal("test123");
8585
});
8686

87-
it('Exclude', function () {
87+
it('should be possible to exclude items in another store', function () {
8888
const store1 = new SymbolStore();
8989
store1.addMany(["test123", "test123456", "test123"]);
9090

@@ -97,7 +97,7 @@ describe('SymbolStore tests', function () {
9797
translations[0][0].should.equal("test123456");
9898
});
9999

100-
it('SoftExclude', function () {
100+
it('should be possible to exclude items that partially match', function () {
101101
const store1 = new SymbolStore();
102102
store1.addMany(["test123", "test123456", "test123"]);
103103

@@ -110,7 +110,7 @@ describe('SymbolStore tests', function () {
110110
translations[0][0].should.equal("test123456");
111111
});
112112

113-
it('Contains', function () {
113+
it('should be able to check contents', function () {
114114
const store = new SymbolStore();
115115
store.addMany(["test123", "test123456", "test123"]);
116116

0 commit comments

Comments
 (0)