index.test.js 722 B

1234567891011121314151617181920212223242526272829
  1. "use strict";
  2. var assert = require("@sinonjs/referee-sinon").assert;
  3. var index = require("./index");
  4. var expectedMethods = [
  5. "calledInOrder",
  6. "className",
  7. "every",
  8. "functionName",
  9. "orderByFirstCall",
  10. "typeOf",
  11. "valueToString"
  12. ];
  13. var expectedObjectProperties = ["deprecated", "prototypes"];
  14. describe("package", function() {
  15. expectedMethods.forEach(function(name) {
  16. it("should export a method named " + name, function() {
  17. assert.isFunction(index[name]);
  18. });
  19. });
  20. expectedObjectProperties.forEach(function(name) {
  21. it("should export an object property named " + name, function() {
  22. assert.isObject(index[name]);
  23. });
  24. });
  25. });