@@ -25,18 +25,18 @@ describe("Test mutations + actions to remove action from component and userActio
25
25
} ;
26
26
} ) ;
27
27
28
- xit ( "deleting user action from state.userActions" , ( ) => {
28
+ it ( "deleting user action from state.userActions" , ( ) => {
29
29
mutations . DELETE_USER_ACTIONS ( state , "action" ) ;
30
30
expect ( state . userActions . length ) . toBe ( 0 ) ;
31
31
} ) ;
32
32
33
- xit ( 'deleting "action" from componentMap' , ( ) => {
33
+ it ( 'deleting "action" from componentMap' , ( ) => {
34
34
mutations . REMOVE_ACTION_FROM_COMPONENT ( state , "action" ) ;
35
35
expect ( state . componentMap . component . mapActions . length ) . toBe ( 0 ) ;
36
36
} ) ;
37
37
} ) ;
38
38
39
- xdescribe ( "Adding actions and state to components" , ( ) => {
39
+ describe ( "Adding actions and state to components" , ( ) => {
40
40
let state ;
41
41
beforeEach ( ( ) => {
42
42
state = {
@@ -52,15 +52,15 @@ xdescribe("Adding actions and state to components", () => {
52
52
activeComponent : "testComponent"
53
53
} ;
54
54
} ) ;
55
- xdescribe ( "Adding actions to components" , ( ) => {
55
+ describe ( "Adding actions to components" , ( ) => {
56
56
it ( "should add a single action to active component" , ( ) => {
57
57
mutations . ADD_TO_COMPONENT_ACTIONS ( state , "testAction" ) ;
58
58
expect (
59
59
state . componentMap [ state . activeComponent ] . componentActions
60
60
) . toEqual ( [ "testAction" ] ) ;
61
61
} ) ;
62
62
} ) ;
63
- xdescribe ( "Adding state to components" , ( ) => {
63
+ describe ( "Adding state to components" , ( ) => {
64
64
it ( "should add a single state string to active component" , ( ) => {
65
65
mutations . ADD_TO_COMPONENT_STATE ( state , "testState" ) ;
66
66
expect ( state . componentMap [ state . activeComponent ] . componentState ) . toEqual ( [
@@ -70,7 +70,7 @@ xdescribe("Adding actions and state to components", () => {
70
70
} ) ;
71
71
} ) ;
72
72
73
- xdescribe ( "userActions mutation" , ( ) => {
73
+ describe ( "userActions mutation" , ( ) => {
74
74
let actions ;
75
75
let store ;
76
76
beforeEach ( ( ) => {
@@ -88,31 +88,31 @@ xdescribe("userActions mutation", () => {
88
88
} ) ;
89
89
} ) ;
90
90
91
- xdescribe ( "userStore mutation" , ( ) => {
91
+ describe ( "userStore mutation" , ( ) => {
92
92
let actions ;
93
93
let store ;
94
94
store = {
95
95
userStore : { }
96
96
} ;
97
- xit ( "should be able to update store with a key defined by the user and a value of type object" , ( ) => {
97
+ it ( "should be able to update store with a key defined by the user and a value of type object" , ( ) => {
98
98
mutations . ADD_TO_USER_STORE ( store , { dummyKey : { } } ) ;
99
99
// console.log('store.userStore.dummyKey', store.userStore.dummyKey);
100
100
expect ( store . userStore . dummyKey ) . toStrictEqual ( { } ) ;
101
101
} ) ;
102
- xit ( "should update user store with a key value pair with value strictly equal to empty array" , ( ) => {
102
+ it ( "should update user store with a key value pair with value strictly equal to empty array" , ( ) => {
103
103
mutations . ADD_TO_USER_STORE ( store , { dummyKey : [ ] } ) ;
104
104
expect ( store . userStore . dummyKey ) . toStrictEqual ( [ ] ) ;
105
105
} ) ;
106
- xit ( "should be able to store booleans in the store as the key" , ( ) => {
106
+ it ( "should be able to store booleans in the store as the key" , ( ) => {
107
107
mutations . ADD_TO_USER_STORE ( store , { boolean : true } ) ;
108
108
expect ( store . userStore . boolean ) . toBe ( true ) ;
109
109
} ) ;
110
- xit ( "should add to userStore a key with a value of type number" , ( ) => {
110
+ it ( "should add to userStore a key with a value of type number" , ( ) => {
111
111
mutations . ADD_TO_USER_STORE ( store , { number : 696 } ) ;
112
112
expect ( store . userStore . number ) . toBe ( 696 ) ;
113
113
} ) ;
114
114
115
- xit ( "should work with strings too" , ( ) => {
115
+ it ( "should work with strings too" , ( ) => {
116
116
mutations . ADD_TO_USER_STORE ( store , { string : "string" } ) ;
117
117
expect ( store . userStore . string ) . toBe ( "string" ) ;
118
118
} ) ;
@@ -126,7 +126,7 @@ xdescribe("userStore mutation", () => {
126
126
* `userStore` holds the user defined state objects
127
127
*/
128
128
129
- xdescribe ( "Delete state in userStore/componentMap" , ( ) => {
129
+ describe ( "Delete state in userStore/componentMap" , ( ) => {
130
130
let state ;
131
131
beforeEach ( ( ) => {
132
132
state = {
@@ -143,13 +143,13 @@ xdescribe("Delete state in userStore/componentMap", () => {
143
143
userStore : { state1 : true , state2 : [ ] }
144
144
} ;
145
145
} ) ;
146
- xdescribe ( '"DELETE_USER_STATE" should delete property from "userStore" object' , ( ) => {
146
+ describe ( '"DELETE_USER_STATE" should delete property from "userStore" object' , ( ) => {
147
147
it ( "should delete a single state property" , ( ) => {
148
148
mutations . DELETE_USER_STATE ( state , "state1" ) ;
149
149
expect ( state . userStore ) . toEqual ( { state2 : [ ] } ) ;
150
150
} ) ;
151
151
} ) ;
152
- xdescribe ( '"REMOVE_STATE_FROM_COMPONENT" should delete state in "activeComponent"' , ( ) => {
152
+ describe ( '"REMOVE_STATE_FROM_COMPONENT" should delete state in "activeComponent"' , ( ) => {
153
153
it ( "should remove state from active component" , ( ) => {
154
154
mutations . REMOVE_STATE_FROM_COMPONENT ( state , "state2" ) ;
155
155
expect ( state . componentMap . test . componentState ) . toEqual ( [ "state1" ] ) ;
0 commit comments