----- "Endi Sukma Dewata" <edew...@redhat.com> wrote:

> var addCmd = ipa.createCommand("user-add");

The createCommand() could be implemented like this:

ipa.createCommand = function(method) {
  return new IPACommand(this, method);
}

The QUnit test could be implemented like this:

test("test01", function() {
  var ipa = new IPA("test/test01", IPA_JSON_FOLDER);
  ... do something ...
  ok(true, "PASSED");
});

--
Endi S. Dewata

_______________________________________________
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel

Reply via email to