如何将我的ES6类加载到Jasmine规范中?

时间:2016-03-15 15:52:24

标签: javascript jasmine

Client.js

"use strict";

class Client {

}


describe("Client", function() {
  require('../client');

  beforeEach(function() {
    client = new Client();
  });

  it("should have a foo", function() {
    expect(client.foo).toEqual(1);
  });
});

Jasmine无法找到班级Client。如何加载我的课程?

0 个答案:

没有答案