diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 15dd078..0039150 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,5 +1,9 @@ name: CI on: pull_request + +permissions: + contents: read + jobs: test: timeout-minutes: 5 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 200b2be..a608177 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,6 +3,10 @@ on: push: branches: - main + +permissions: + contents: read + jobs: release: name: Release diff --git a/test/d2l-localize-behavior.test.js b/test/d2l-localize-behavior.test.js index c2a3897..3bda4b5 100644 --- a/test/d2l-localize-behavior.test.js +++ b/test/d2l-localize-behavior.test.js @@ -234,30 +234,30 @@ describe('d2l-localize-behavior', () => { it('should format a time using default format', () => { const val = elem.formatTime(date); - expect(val).to.equal('5:13 PM'); + expect(val).to.equal('5:13 PM'); }); it('should format a time using specified format', () => { const val = elem.formatTime(date, { format: 'full' }); - expect(val).to.equal('5:13 PM '); + expect(val).to.equal('5:13 PM '); }); it('should format time via data binding', () => { - expect(elem.$$('.time').innerText).to.equal('5:13 PM'); + expect(elem.$$('.time').innerText).to.equal('5:13 PM'); }); it('should format a date/time using default format', () => { const val = elem.formatDateTime(date); - expect(val).to.equal('12/1/2017 5:13 PM'); + expect(val).to.equal('12/1/2017 5:13 PM'); }); it('should format a date/time using specified format', () => { const val = elem.formatDateTime(date, { format: 'medium' }); - expect(val).to.equal('Dec 1, 2017 5:13 PM'); + expect(val).to.equal('Dec 1, 2017 5:13 PM'); }); it('should format a date/time using data binding', () => { - expect(elem.$$('.date-time').innerText).to.equal('12/1/2017 5:13 PM'); + expect(elem.$$('.date-time').innerText).to.equal('12/1/2017 5:13 PM'); }); it('should parse a date', () => {