-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
16aa443
commit 5b6e4d9
Showing
8 changed files
with
7,138 additions
and
1,750 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,6 @@ | |
.idea | ||
npm-debug.log | ||
node_modules | ||
test-app/* | ||
test-app/* | ||
package-lock.json | ||
yarn.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
"use strict"; | ||
|
||
(function (global, factory) { | ||
if (typeof define === "function" && define.amd) { | ||
define(['../index'], factory); | ||
} else if (typeof exports !== "undefined") { | ||
factory(require('../index')); | ||
} else { | ||
var mod = { | ||
exports: {} | ||
}; | ||
factory(global.index); | ||
global.undefined = mod.exports; | ||
} | ||
})(void 0, function (_require) { | ||
"use strict"; | ||
|
||
var daysInMonth = _require.daysInMonth; | ||
describe('daysInMonth', function () { | ||
test('1st month should return 31', function () { | ||
expect(daysInMonth('1', '1402')).toBe(31); | ||
}); | ||
test('6th month should return 31', function () { | ||
expect(daysInMonth('6', '1402')).toBe(31); | ||
}); | ||
test('7th month should return 30', function () { | ||
expect(daysInMonth('7', '1402')).toBe(30); | ||
}); | ||
test('12th month should return 29 in non-leap year', function () { | ||
expect(daysInMonth('12', '1402')).toBe(29); | ||
}); | ||
test('12th month should return 30 in leap year', function () { | ||
expect(daysInMonth('12', '1403')).toBe(30); | ||
}); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.