Skip to content

Commit

Permalink
Use new methods
Browse files Browse the repository at this point in the history
  • Loading branch information
martijnrusschen committed Jun 25, 2019
1 parent 1ea4861 commit 54a7716
Show file tree
Hide file tree
Showing 12 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion test/datepicker_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ describe("DatePicker", () => {
let sandbox;

beforeEach(() => {
sandbox = sinon.sandbox.create();
sandbox = sinon.createSandbox();
});

afterEach(() => {
Expand Down
2 changes: 1 addition & 1 deletion test/exclude_time_period_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ describe("DatePicker", () => {
let sandbox;

beforeEach(() => {
sandbox = sinon.sandbox.create();
sandbox = sinon.createSandbox();
});

afterEach(() => {
Expand Down
2 changes: 1 addition & 1 deletion test/exclude_times_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ describe("DatePicker", () => {
let sandbox;

beforeEach(() => {
sandbox = sinon.sandbox.create();
sandbox = sinon.createSandbox();
});

afterEach(() => {
Expand Down
2 changes: 1 addition & 1 deletion test/include_times_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ describe("TimeComponent", () => {
let sandbox;

beforeEach(() => {
sandbox = sinon.sandbox.create();
sandbox = sinon.createSandbox();
});

afterEach(() => {
Expand Down
2 changes: 1 addition & 1 deletion test/inject_times_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ describe("TimeComponent", () => {
let sandbox;

beforeEach(() => {
sandbox = sinon.sandbox.create();
sandbox = sinon.createSandbox();
});

afterEach(() => {
Expand Down
2 changes: 1 addition & 1 deletion test/month_dropdown_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ describe("MonthDropdown", () => {

beforeEach(() => {
handleChangeResult = null;
sandbox = sinon.sandbox.create();
sandbox = sinon.createSandbox();
});

afterEach(() => {
Expand Down
2 changes: 1 addition & 1 deletion test/month_year_dropdown_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ describe("MonthYearDropdown", () => {

beforeEach(() => {
handleChangeResult = null;
sandbox = sinon.sandbox.create();
sandbox = sinon.createSandbox();
});

afterEach(() => {
Expand Down
2 changes: 1 addition & 1 deletion test/show_time_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ describe("DatePicker", () => {
let sandbox;

beforeEach(() => {
sandbox = sinon.sandbox.create();
sandbox = sinon.createSandbox();
});

afterEach(() => {
Expand Down
2 changes: 1 addition & 1 deletion test/time_format_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ describe("TimeComponent", () => {
let sandbox;

beforeEach(() => {
sandbox = sinon.sandbox.create();
sandbox = sinon.createSandbox();
// mock global time to June 14, 1990 13:28:12, so test results will be constant
sandbox.useFakeTimers({
now: new Date("1990-06-14 13:28").valueOf(),
Expand Down
2 changes: 1 addition & 1 deletion test/time_input_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ describe("DatePicker", () => {
let sandbox;

beforeEach(() => {
sandbox = sinon.sandbox.create();
sandbox = sinon.createSandbox();
});

afterEach(() => {
Expand Down
4 changes: 2 additions & 2 deletions test/year_dropdown_options_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ describe("YearDropdownOptions", () => {
let sandbox, onCancelSpy;

beforeEach(() => {
sandbox = sinon.sandbox.create();
sandbox = sinon.createSandbox();
onCancelSpy = sandbox.spy();
yearDropdown = mount(
<YearDropdownOptions
Expand Down Expand Up @@ -125,7 +125,7 @@ describe("YearDropdownOptions with scrollable dropwdown", () => {
let sandbox;

beforeEach(() => {
sandbox = sinon.sandbox.create();
sandbox = sinon.createSandbox();
});

afterEach(() => {
Expand Down
2 changes: 1 addition & 1 deletion test/year_dropdown_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ describe("YearDropdown", () => {

it("calls the supplied onChange function when a different year is clicked", () => {
let sandbox;
sandbox = sinon.sandbox.create();
sandbox = sinon.createSandbox();
var onSelectSpy = sandbox.spy();
var setOpenSpy = sandbox.spy();
yearDropdown = getYearDropdown({
Expand Down

0 comments on commit 54a7716

Please sign in to comment.