fix(timpicker): another name change to make quick ranges nameing more consistent, fixes #3465

pull/3442/merge
Torkel Ödegaard 10 years ago
parent aa4ac9fa05
commit 6ea00a4f7c
  1. 2
      public/app/core/utils/rangeutil.ts
  2. 2
      public/test/core/utils/rangeutil_specs.ts

@ -19,7 +19,7 @@ var rangeOptions = [
{ from: 'now/d', to: 'now/d', display: 'Today', section: 2 },
{ from: 'now/d', to: 'now', display: 'Today so far', section: 2 },
{ from: 'now/w', to: 'now/w', display: 'This week', section: 2 },
{ from: 'now/w', to: 'now', display: 'Week so far', section: 2 },
{ from: 'now/w', to: 'now', display: 'This week so far', section: 2 },
{ from: 'now/M', to: 'now/M', display: 'This month', section: 2 },
{ from: 'now/y', to: 'now/y', display: 'This year', section: 2 },

@ -46,7 +46,7 @@ describe("rangeUtil", () => {
it('should handle now/w', () => {
var info = rangeUtil.describeTextRange('now/w');
expect(info.display).to.be('Week so far');
expect(info.display).to.be('This week so far');
});
});

Loading…
Cancel
Save