You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I need help in writing a couple of tests for my experimentAPI service:
const request = {
site_slug: 'site_slug',
name: 'Test Experiment',
is_regex: false,
url_regex: '',
urls: ['url1', '/url2', '//url3', '']
}```
How can I check that the data is formatted correctly? After format using helper addSlashAtStart urls should look like this:
urls: ['/url1', '/url2', '/url3', '/']
I wrote the test, but can't to check request:
Beta Was this translation helpful? Give feedback.
All reactions