We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53e6de3 commit c716d4dCopy full SHA for c716d4d
packages/core/test/lib/utils/featureFlags.test.ts
@@ -164,7 +164,30 @@ describe('flags', () => {
164
165
const result = _INTERNAL_copyFlagsFromScopeToEvent(event);
166
167
- expect(result).toEqual(event);
+ expect(result).toEqual({
168
+ contexts: {
169
+ flags: {
170
+ values: [
171
+ {
172
+ flag: 'feat1',
173
+ result: true,
174
+ },
175
176
+ flag: 'feat2',
177
+ result: false,
178
179
+ ],
180
181
182
+ exception: {
183
184
185
+ type: 'Error',
186
+ value: 'error message',
187
188
189
190
+ });
191
expect(getCurrentScope).toHaveBeenCalled();
192
});
193
0 commit comments