@@ -27,14 +27,14 @@ const SymbolStore = require('../lib/symbol-store').SymbolStore;
27
27
28
28
chai . should ( ) ;
29
29
30
- describe ( 'SymbolStore tests ' , function ( ) {
31
- it ( 'Empty ' , function ( ) {
30
+ describe ( 'SymbolStore' , function ( ) {
31
+ it ( 'should be empty initially ' , function ( ) {
32
32
const store = new SymbolStore ( ) ;
33
33
store . listSymbols ( ) . length . should . equal ( 0 ) ;
34
34
store . listTranslations ( ) . length . should . equal ( 0 ) ;
35
35
} ) ;
36
36
37
- it ( 'One item' , function ( ) {
37
+ it ( 'should be able to add an item' , function ( ) {
38
38
const store = new SymbolStore ( ) ;
39
39
store . add ( "test" ) ;
40
40
store . listSymbols ( ) . length . should . equal ( 1 ) ;
@@ -47,7 +47,7 @@ describe('SymbolStore tests', function () {
47
47
translations [ 0 ] [ 1 ] . should . equal ( "test" ) ;
48
48
} ) ;
49
49
50
- it ( 'Duplicate items' , function ( ) {
50
+ it ( 'should not contain duplicate items' , function ( ) {
51
51
const store = new SymbolStore ( ) ;
52
52
store . add ( "test" ) ;
53
53
store . add ( "test" ) ;
@@ -61,7 +61,7 @@ describe('SymbolStore tests', function () {
61
61
translations [ 0 ] [ 1 ] . should . equal ( "test" ) ;
62
62
} ) ;
63
63
64
- it ( 'Sorted items ' , function ( ) {
64
+ it ( 'should return a sorted list ' , function ( ) {
65
65
const store = new SymbolStore ( ) ;
66
66
store . add ( "test123" ) ;
67
67
store . add ( "test123456" ) ;
@@ -73,7 +73,7 @@ describe('SymbolStore tests', function () {
73
73
translations [ 1 ] [ 0 ] . should . equal ( "test123" ) ;
74
74
} ) ;
75
75
76
- it ( 'Add-many ' , function ( ) {
76
+ it ( 'should be able to add an array of items ' , function ( ) {
77
77
const store = new SymbolStore ( ) ;
78
78
store . addMany ( [ "test123" , "test123456" , "test123" ] ) ;
79
79
store . listSymbols ( ) . length . should . equal ( 2 ) ;
@@ -84,7 +84,7 @@ describe('SymbolStore tests', function () {
84
84
translations [ 1 ] [ 0 ] . should . equal ( "test123" ) ;
85
85
} ) ;
86
86
87
- it ( 'Exclude ' , function ( ) {
87
+ it ( 'should be possible to exclude items in another store ' , function ( ) {
88
88
const store1 = new SymbolStore ( ) ;
89
89
store1 . addMany ( [ "test123" , "test123456" , "test123" ] ) ;
90
90
@@ -97,7 +97,7 @@ describe('SymbolStore tests', function () {
97
97
translations [ 0 ] [ 0 ] . should . equal ( "test123456" ) ;
98
98
} ) ;
99
99
100
- it ( 'SoftExclude ' , function ( ) {
100
+ it ( 'should be possible to exclude items that partially match ' , function ( ) {
101
101
const store1 = new SymbolStore ( ) ;
102
102
store1 . addMany ( [ "test123" , "test123456" , "test123" ] ) ;
103
103
@@ -110,7 +110,7 @@ describe('SymbolStore tests', function () {
110
110
translations [ 0 ] [ 0 ] . should . equal ( "test123456" ) ;
111
111
} ) ;
112
112
113
- it ( 'Contains ' , function ( ) {
113
+ it ( 'should be able to check contents ' , function ( ) {
114
114
const store = new SymbolStore ( ) ;
115
115
store . addMany ( [ "test123" , "test123456" , "test123" ] ) ;
116
116
0 commit comments