Test api of response with include and oneOf

Let say my api response with a greeting text. It can be one of ‘Hello’ or ‘Salut!’ then follow with a username depends on user’s preferred language. How to test whether the api return one of the two?

I try pm.expect(pm.response.text()).to.include.oneOf(["Hello", "Salut!"]); but didn’t work.
Any Suggestion?

Hey @baramee1407, can you please provide the response of the API for the community to assist you better? :slight_smile: