Skip to content

Commit 032adf1

Browse files
committed
Use the alias for the timepicker utils to simplify the tests.
1 parent bb7e010 commit 032adf1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/jquery-ui-timepicker-addon_spec.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -203,22 +203,22 @@ describe('datetimepicker', function() {
203203
property: expectedUniqueValue
204204
};
205205

206-
expect($.timepicker._util._computeEffectiveSetting(settings, 'property')).toBe(expectedUniqueValue);
206+
expect(util._computeEffectiveSetting(settings, 'property')).toBe(expectedUniqueValue);
207207
});
208208

209209
it('pulls the setting from the timepicker defaults if there are no passed settings', function() {
210210
var expectedValue = $.timepicker._defaults.separator;
211211
expect(expectedValue).toBeDefined();
212212

213-
expect($.timepicker._util._computeEffectiveSetting(undefined, 'separator')).toBe(expectedValue);
213+
expect(util._computeEffectiveSetting(undefined, 'separator')).toBe(expectedValue);
214214
});
215215

216216
it('pulls the setting from the timepicker defaults if not present in the passed settings', function() {
217217
var expectedValue = $.timepicker._defaults.separator,
218218
settings = {};
219219
expect(expectedValue).toBeDefined();
220220

221-
expect($.timepicker._util._computeEffectiveSetting(settings, 'separator')).toBe(expectedValue);
221+
expect(util._computeEffectiveSetting(settings, 'separator')).toBe(expectedValue);
222222
});
223223
});
224224

@@ -273,7 +273,7 @@ describe('datetimepicker', function() {
273273
expectedDate = new Date(inputDateString),
274274
result;
275275

276-
result = $.timepicker._util._parseDateTimeInternal(dateFormat, undefined, inputDateString, undefined, undefined);
276+
result = util._parseDateTimeInternal(dateFormat, undefined, inputDateString, undefined, undefined);
277277

278278
expect(result.date).toEqual(expectedDate);
279279
expect(result.timeObj).toBeUndefined();
@@ -296,7 +296,7 @@ describe('datetimepicker', function() {
296296
expectedDate = new Date(expectedDateString),
297297
result;
298298

299-
result = $.timepicker._util._parseDateTimeInternal(dateFormat, 'H:m:s.l', inputDateTimeString, undefined, undefined);
299+
result = util._parseDateTimeInternal(dateFormat, 'H:m:s.l', inputDateTimeString, undefined, undefined);
300300

301301
expect(result.date).toEqual(expectedDate);
302302
expect(result.timeObj).toEqual(expectedParsedTime);
@@ -306,7 +306,7 @@ describe('datetimepicker', function() {
306306
var inputDateString = '4/17/2008 11:22:33';
307307

308308
expect(function() {
309-
$.timepicker._util._parseDateTimeInternal(dateFormat, 'q', inputDateString, undefined, undefined);
309+
util._parseDateTimeInternal(dateFormat, 'q', inputDateString, undefined, undefined);
310310
}).toThrow('Wrong time format');
311311
});
312312
});

0 commit comments

Comments
 (0)