File: tests/spec/RestSpec.js

Recommend this page to a friend!
  Classes of Elger van Boxtel   JS Rest Client   tests/spec/RestSpec.js   Download  
File: tests/spec/RestSpec.js
Role: Unit test script
Content type: text/plain
Description: Unit test script
Class: JS Rest Client
Send HTTP REST API requests using XMLHttpRequest
Author: By
Last change: Update of tests/spec/RestSpec.js
Date: 2 years ago
Size: 334 bytes
 

Contents

Class file image Download
describe("Rest test suite", function() { var rest = new Rest(); it("Rest should contain a version", function() { expect(rest.version).not.toBe(null); expect(rest.version).not.toBe(undefined); }); it("Should contain a version like: v1.0", function(){ expect(rest.version).toMatch(/v[0-9]+\.[0-9]+/); }); });