Skip to content

Commit

Permalink
⚡ change date arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
icebob committed May 30, 2016
1 parent 4b79d86 commit a876346
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
8 changes: 4 additions & 4 deletions lib/locales/default/date/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
months: [
month: [
"January",
"February",
"March",
Expand All @@ -14,7 +14,7 @@ module.exports = {
"December"
],

weekdays: [
weekday: [
"Sunday",
"Monday",
"Tuesday",
Expand All @@ -24,7 +24,7 @@ module.exports = {
"Saturday"
],

weekdaysShort: [
weekdayShort: [
"Sun",
"Mon",
"Tue",
Expand All @@ -34,7 +34,7 @@ module.exports = {
"Sat"
],

weekdaysMin: [
weekdayMin: [
"Su",
"Mo",
"Tu",
Expand Down
24 changes: 12 additions & 12 deletions test/specs/locales/default/date.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,24 +46,24 @@ describe("Default date", () => {
expect(fakerator.date.age(6, 18)).to.be.equal(18);
});

it("check date.months", () => {
expect(fakerator.populate("#{date.months}")).to.be.equal("September");
expect(fakerator.date.months()).to.be.equal("February");
it("check date.month", () => {
expect(fakerator.populate("#{date.month}")).to.be.equal("September");
expect(fakerator.date.month()).to.be.equal("February");
});

it("check date.weekdays", () => {
expect(fakerator.populate("#{date.weekdays}")).to.be.equal("Friday");
expect(fakerator.date.weekdays()).to.be.equal("Sunday");
it("check date.weekday", () => {
expect(fakerator.populate("#{date.weekday}")).to.be.equal("Friday");
expect(fakerator.date.weekday()).to.be.equal("Sunday");
});

it("check date.weekdaysShort", () => {
expect(fakerator.populate("#{date.weekdaysShort}")).to.be.equal("Fri");
expect(fakerator.date.weekdaysShort()).to.be.equal("Sun");
it("check date.weekdayShort", () => {
expect(fakerator.populate("#{date.weekdayShort}")).to.be.equal("Fri");
expect(fakerator.date.weekdayShort()).to.be.equal("Sun");
});

it("check date.weekdaysMin", () => {
expect(fakerator.populate("#{date.weekdaysMin}")).to.be.equal("Fr");
expect(fakerator.date.weekdaysMin()).to.be.equal("Su");
it("check date.weekdayMin", () => {
expect(fakerator.populate("#{date.weekdayMin}")).to.be.equal("Fr");
expect(fakerator.date.weekdayMin()).to.be.equal("Su");
});

})

0 comments on commit a876346

Please sign in to comment.