multiple-members.js 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. if (testConfig.ENABLE_ONLINE_TESTS === "true") {
  2. describe("POST /users/me/pet", function() {
  3. it("saves pet", function() {
  4. function assert(pet) {
  5. expect(pet).to.have.property("OwnerAddress").that.deep.equals({
  6. AddressLine1: "Alexanderstrasse",
  7. AddressLine2: "",
  8. PostalCode: "10999",
  9. Region: "Berlin",
  10. City: "Berlin",
  11. Country: "DE"
  12. });
  13. }
  14. });
  15. });
  16. }
  17. wrapper.find('SomewhatLongNodeName').prop('longPropFunctionName')().then(function() {
  18. doSomething();
  19. });
  20. wrapper.find('SomewhatLongNodeName').prop('longPropFunctionName')('argument').then(function() {
  21. doSomething();
  22. });
  23. wrapper.find('SomewhatLongNodeName').prop('longPropFunctionName', 'second argument that pushes this group past 80 characters')('argument').then(function() {
  24. doSomething();
  25. });
  26. wrapper.find('SomewhatLongNodeName').prop('longPropFunctionName')('argument', 'second argument that pushes this group past 80 characters').then(function() {
  27. doSomething();
  28. });