File tree 1 file changed +19
-16
lines changed
packages/firestore/test/unit/specs
1 file changed +19
-16
lines changed Original file line number Diff line number Diff line change @@ -139,26 +139,29 @@ export function specTest(
139
139
return spec . runAsTest ( fullName , usePersistence ) ;
140
140
} ) ;
141
141
}
142
- return ;
143
- }
144
-
145
- const spec = builder ( ) ;
142
+ } else {
143
+ assert (
144
+ tags . indexOf ( EXCLUSIVE_TAG ) === - 1 ,
145
+ "The 'exclusive' tag is only supported for development and should not be exported to other platforms."
146
+ ) ;
147
+ const spec = builder ( ) ;
146
148
147
- const specJSON = spec . toJSON ( ) ;
149
+ const specJSON = spec . toJSON ( ) ;
148
150
149
- const json = {
150
- describeName,
151
- itName : name ,
152
- tags,
153
- comment,
154
- config : specJSON . config ,
155
- steps : specJSON . steps
156
- } ;
151
+ const json = {
152
+ describeName,
153
+ itName : name ,
154
+ tags,
155
+ comment,
156
+ config : specJSON . config ,
157
+ steps : specJSON . steps
158
+ } ;
157
159
158
- if ( name in specsInThisTest ) {
159
- throw new Error ( 'duplicate spec test: "' + name + '"' ) ;
160
+ if ( name in specsInThisTest ) {
161
+ throw new Error ( 'duplicate spec test: "' + name + '"' ) ;
162
+ }
163
+ specsInThisTest [ name ] = json ;
160
164
}
161
- specsInThisTest [ name ] = json ;
162
165
}
163
166
164
167
/**
You can’t perform that action at this time.
0 commit comments