Skip to content

Instantly share code, notes, and snippets.

@pmatsinopoulos
Last active June 26, 2023 04:45
Show Gist options
  • Save pmatsinopoulos/f629e13807599134c336a2ec3b5726e8 to your computer and use it in GitHub Desktop.
Save pmatsinopoulos/f629e13807599134c336a2ec3b5726e8 to your computer and use it in GitHub Desktop.
describe('squeeze function', function () {
context('when string is "Hello World!" and set of characters is "oe"', function () {
var input = "Hello World!";
var setOfCharacters = "oe";
it('should return "Hll Wrld!"', function () {
var result = "Hll Wrld!";
expect(squeeze(input, setOfCharacters)).toBe(result);
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment