Skip to content

Commit

Permalink
Remove '-private' using in test-app
Browse files Browse the repository at this point in the history
  • Loading branch information
mkszepp committed Jan 4, 2024
1 parent d461f62 commit 484eec7
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 9 deletions.
6 changes: 4 additions & 2 deletions ember-power-calendar/src/components/power-calendar-range.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ import {
normalizeDuration,
} from '../utils';
import { assert } from '@ember/debug';

import ownProp from '../-private/utils/own-prop';
import PowerCalendarRangeComponent from './power-calendar-range/days';

export default class extends CalendarComponent {
Expand Down Expand Up @@ -173,3 +171,7 @@ export default class extends CalendarComponent {
return normalizeRangeActionValue({ date: { start: day.date, end: null } });
}
}

function ownProp(obj, prop) {
return Object.prototype.hasOwnProperty.call(obj, prop);
}
File renamed without changes.
2 changes: 1 addition & 1 deletion test-app/tests/assertions/is-calendar.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import ownProp from 'ember-power-calendar/-private/utils/own-prop';
import ownProp from 'test-app/utils/own-prop';

export default function isCalendar(calendar, message) {
let result =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ import { render, click } from '@ember/test-helpers';
import { hbs } from 'ember-cli-htmlbars';
import { run } from '@ember/runloop';
import { isSame } from 'ember-power-calendar/test-support/helpers';

import ownProp from 'ember-power-calendar/-private/utils/own-prop';
import ownProp from 'test-app/utils/own-prop';

module('Integration | Component | <PowerCalendarRange>', function (hooks) {
setupRenderingTest(hooks);
Expand Down
3 changes: 1 addition & 2 deletions test-app/tests/integration/components/power-calendar-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ import { run, later } from '@ember/runloop';
import RSVP from 'rsvp';
import require from 'require';
import { importSync } from '@embroider/macros';

import ownProp from 'ember-power-calendar/-private/utils/own-prop';
import ownProp from 'test-app/utils/own-prop';

const dateLibrary = require.has('luxon') ? 'luxon' : 'moment';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ import { hbs } from 'ember-cli-htmlbars';
import { run } from '@ember/runloop';
import require from 'require';
import { TrackedObject } from 'tracked-built-ins';

import ownProp from 'ember-power-calendar/-private/utils/own-prop';
import ownProp from 'test-app/utils/own-prop';

const dateLibrary = require.has('luxon') ? 'luxon' : 'moment';
let calendarService;
Expand Down

0 comments on commit 484eec7

Please sign in to comment.