MomentJS

day that have 25 hours.

HTML

<script src="http://jasmine.github.io/2.1/lib/jasmine.js"></script>
<script src="http://jasmine.github.io/2.1/lib/jasmine-html.js"></script>
<script src="http://jasmine.github.io/2.1/lib/boot.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.10.6/moment.js"></script>

CSS

body {
    overflow-y: scroll;
}
.jasmine_html-reporter {
    background-color: #eee;
    padding: 5px;
    margin: -8px;
    font-size: 11px;
    font-family: Monaco, "Lucida Console", monospace;
    line-height: 14px;
    color: #333;
}
.jasmine_html-reporter a {
    text-decoration: none;
}
.jasmine_html-reporter a:hover {
    text-decoration: underline;
}
.jasmine_html-reporter p, .jasmine_html-reporter h1, .jasmine_html-reporter h2, .jasmine_html-reporter h3, .jasmine_html-reporter h4, .jasmine_html-reporter h5, .jasmine_html-reporter h6 {
    margin: 0;
    line-height: 14px;
}
.jasmine_html-reporter .banner, .jasmine_html-reporter .symbol-summary, .jasmine_html-reporter .summary, .jasmine_html-reporter .result-message, .jasmine_html-reporter .spec .description, .jasmine_html-reporter .spec-detail .description, .jasmine_html-reporter .alert .bar, .jasmine_html-reporter .stack-trace {
    padding-left: 9px;
    padding-right: 9px;
}
.jasmine_html-reporter .banner {
    position: relative;
}
.jasmine_html-reporter .banner .title {
    background:...

JavaScript

//--- SPECS -------------------------
fdescribe("MomentJS", function () {
    describe('regular day', function () {
        it('day should have 24 hours', function () {
            var startDate = moment('2015-10-24').startOf('day'),
                endDate = moment('2015-10-24').endOf('day')

            expect(Math.ceil(endDate.diff(startDate, 'hours', true)) ).toBe(24);
        });
    });

    describe('date where daylight saving occurs', function () {
        it('day should have 24 hours', function () {
            var startDate = moment('2015-11-01').startOf('day'),
                endDate = moment('2015-11-01').endOf('day')

            expect(Math.ceil(endDate.diff(startDate, 'hours', true)) ).toBe(24);
        });
    });
});