diff --git a/test/datepicker_test.js b/test/datepicker_test.js index 3a95470f1..2b82b401a 100644 --- a/test/datepicker_test.js +++ b/test/datepicker_test.js @@ -46,7 +46,7 @@ describe("DatePicker", () => { let sandbox; beforeEach(() => { - sandbox = sinon.sandbox.create(); + sandbox = sinon.createSandbox(); }); afterEach(() => { diff --git a/test/exclude_time_period_test.js b/test/exclude_time_period_test.js index 90fecf672..21aec6a7b 100644 --- a/test/exclude_time_period_test.js +++ b/test/exclude_time_period_test.js @@ -7,7 +7,7 @@ describe("DatePicker", () => { let sandbox; beforeEach(() => { - sandbox = sinon.sandbox.create(); + sandbox = sinon.createSandbox(); }); afterEach(() => { diff --git a/test/exclude_times_test.js b/test/exclude_times_test.js index dcf37477a..0a0461199 100644 --- a/test/exclude_times_test.js +++ b/test/exclude_times_test.js @@ -7,7 +7,7 @@ describe("DatePicker", () => { let sandbox; beforeEach(() => { - sandbox = sinon.sandbox.create(); + sandbox = sinon.createSandbox(); }); afterEach(() => { diff --git a/test/include_times_test.js b/test/include_times_test.js index 79ede1904..152f00f5c 100644 --- a/test/include_times_test.js +++ b/test/include_times_test.js @@ -8,7 +8,7 @@ describe("TimeComponent", () => { let sandbox; beforeEach(() => { - sandbox = sinon.sandbox.create(); + sandbox = sinon.createSandbox(); }); afterEach(() => { diff --git a/test/inject_times_test.js b/test/inject_times_test.js index 993d6d9d1..6a6dbe517 100644 --- a/test/inject_times_test.js +++ b/test/inject_times_test.js @@ -8,7 +8,7 @@ describe("TimeComponent", () => { let sandbox; beforeEach(() => { - sandbox = sinon.sandbox.create(); + sandbox = sinon.createSandbox(); }); afterEach(() => { diff --git a/test/month_dropdown_test.js b/test/month_dropdown_test.js index d03e1133a..723b2da3c 100644 --- a/test/month_dropdown_test.js +++ b/test/month_dropdown_test.js @@ -29,7 +29,7 @@ describe("MonthDropdown", () => { beforeEach(() => { handleChangeResult = null; - sandbox = sinon.sandbox.create(); + sandbox = sinon.createSandbox(); }); afterEach(() => { diff --git a/test/month_year_dropdown_test.js b/test/month_year_dropdown_test.js index ec508c583..24835364f 100644 --- a/test/month_year_dropdown_test.js +++ b/test/month_year_dropdown_test.js @@ -41,7 +41,7 @@ describe("MonthYearDropdown", () => { beforeEach(() => { handleChangeResult = null; - sandbox = sinon.sandbox.create(); + sandbox = sinon.createSandbox(); }); afterEach(() => { diff --git a/test/show_time_test.js b/test/show_time_test.js index b56264a6a..6d2970847 100644 --- a/test/show_time_test.js +++ b/test/show_time_test.js @@ -7,7 +7,7 @@ describe("DatePicker", () => { let sandbox; beforeEach(() => { - sandbox = sinon.sandbox.create(); + sandbox = sinon.createSandbox(); }); afterEach(() => { diff --git a/test/time_format_test.js b/test/time_format_test.js index 3b94312f9..dfac18a14 100644 --- a/test/time_format_test.js +++ b/test/time_format_test.js @@ -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(), diff --git a/test/time_input_test.js b/test/time_input_test.js index 7294e2084..42c47664b 100644 --- a/test/time_input_test.js +++ b/test/time_input_test.js @@ -7,7 +7,7 @@ describe("DatePicker", () => { let sandbox; beforeEach(() => { - sandbox = sinon.sandbox.create(); + sandbox = sinon.createSandbox(); }); afterEach(() => { diff --git a/test/year_dropdown_options_test.js b/test/year_dropdown_options_test.js index c785cdd20..02ecfcf3c 100644 --- a/test/year_dropdown_options_test.js +++ b/test/year_dropdown_options_test.js @@ -11,7 +11,7 @@ describe("YearDropdownOptions", () => { let sandbox, onCancelSpy; beforeEach(() => { - sandbox = sinon.sandbox.create(); + sandbox = sinon.createSandbox(); onCancelSpy = sandbox.spy(); yearDropdown = mount( { let sandbox; beforeEach(() => { - sandbox = sinon.sandbox.create(); + sandbox = sinon.createSandbox(); }); afterEach(() => { diff --git a/test/year_dropdown_test.js b/test/year_dropdown_test.js index bdf8c21bf..88fd09c8a 100644 --- a/test/year_dropdown_test.js +++ b/test/year_dropdown_test.js @@ -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({