Skip to content

Instantly share code, notes, and snippets.

@goldbergyoni
Created December 30, 2018 19:52
Show Gist options
  • Select an option

  • Save goldbergyoni/80b87810a898429580b3054e8601ec76 to your computer and use it in GitHub Desktop.

Select an option

Save goldbergyoni/80b87810a898429580b3054e8601ec76 to your computer and use it in GitHub Desktop.
A simple assertion
it("When asking for an admin, ensure only ordered admins in results" , ()={
//assuming we've added here two admins
const allAdmins = getUsers({adminOnly:true});
expect(allAdmins).to.include.ordered.members(["admin1" , "admin2"])
.but.not.include.ordered.members(["user1"]);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment