diff --git a/CHANGELOG.md b/CHANGELOG.md
index 0c49335..2ccd5dc 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,7 +4,7 @@
### Changes
-- Chnage `datepicer.show()` to move the focus to the input field if it's not focused
+- Change `datepicker.show()` to move the focus to the input field if it's not focused
- Fix #52 — picker shown by calling show() doesn't hide by clicking outside
## 1.1.3
diff --git a/README.md b/README.md
index c259864..e6eaaee 100644
--- a/README.md
+++ b/README.md
@@ -37,7 +37,7 @@ If you want to use the **Tailwind Date Range Picker** you have to import the `Da
import DateRangePicker from 'flowbite-datepicker/DateRangePicker';
```
-Then in the same fashion you can initalize a date range picker component by using the `DateRangePicker` constructor:
+Then in the same fashion you can initialize a date range picker component by using the `DateRangePicker` constructor:
```javascript
const dateRangePickerEl = document.getElementById('dateRangePickerId');
diff --git a/demo/index.html b/demo/index.html
index 6e2ce5e..442e2f0 100644
--- a/demo/index.html
+++ b/demo/index.html
@@ -554,7 +554,7 @@
Text direction
-
+
diff --git a/test/unit/DateRangePicker.js b/test/unit/DateRangePicker.js
index cd798f3..9322fc4 100644
--- a/test/unit/DateRangePicker.js
+++ b/test/unit/DateRangePicker.js
@@ -28,7 +28,7 @@ describe('DateRangePicker', function () {
});
describe('constructor', function () {
- it('attachs the created instance to the bound element', function () {
+ it('attaches the created instance to the bound element', function () {
const drp = new DateRangePicker(elem);
expect(elem.rangepicker, 'to be', drp);
});
diff --git a/test/unit/Datepicker.js b/test/unit/Datepicker.js
index 023f7e4..d01f87b 100644
--- a/test/unit/Datepicker.js
+++ b/test/unit/Datepicker.js
@@ -31,7 +31,7 @@ describe('Datepicker', function () {
testContainer.removeChild(input);
});
- it('attachs the created instance to the bound element', function () {
+ it('attaches the created instance to the bound element', function () {
const dp = new Datepicker(input);
expect(input.datepicker, 'to be', dp);
});
@@ -282,7 +282,7 @@ describe('Datepicker', function () {
});
describe('static parseDate()', function () {
- it('parses a date string and returnes the time value of the date', function () {
+ it('parses a date string and returns the time value of the date', function () {
Datepicker.locales.es = esLocale;
let timeValue = new Date(2020, 0, 4).getTime();
diff --git a/test/unit/lib/date-format.js b/test/unit/lib/date-format.js
index ea0f079..4b4338c 100644
--- a/test/unit/lib/date-format.js
+++ b/test/unit/lib/date-format.js
@@ -52,7 +52,7 @@ describe('lib/date', function () {
expect(parseDate(Date.now()), 'to be', origDate);
});
- it('invokes custom parse fucntion and returns the result if it\'s given to format.toValue', function () {
+ it('invokes custom parse function and returns the result if it\'s given to format.toValue', function () {
const date = new Date();
const format = {toValue: sinon.stub()};
format.toValue.returns(date);
@@ -226,7 +226,7 @@ describe('lib/date', function () {
expect(formatDate(0, 'yyyy', locales.en), 'not to be', '');
});
- it('invokes custom format fucntion and returns the result if it\'s given to format.toDisplay', function () {
+ it('invokes custom format function and returns the result if it\'s given to format.toDisplay', function () {
const date = new Date(2012, 2, 5);
const format = {toDisplay: sinon.stub()};
format.toDisplay.returns('foo-bar');
diff --git a/test/unit/lib/date.js b/test/unit/lib/date.js
index a2e38ff..cc03922 100644
--- a/test/unit/lib/date.js
+++ b/test/unit/lib/date.js
@@ -167,7 +167,7 @@ describe('lib/date', function () {
expect(dayOfTheWeekOf(new Date(2018, 10, 20), 6), 'to be', new Date(2018, 10, 24).getTime());
});
- it('uses sepecified start day of week if it is given', function () {
+ it('uses specified start day of week if it is given', function () {
expect(dayOfTheWeekOf(new Date(2017, 0, 1), 0, 1), 'to be', new Date(2017, 0, 1).getTime());
expect(dayOfTheWeekOf(new Date(2017, 3, 5), 1, 3), 'to be', new Date(2017, 3, 10).getTime());
expect(dayOfTheWeekOf(new Date(2017, 5, 8), 2, 4), 'to be', new Date(2017, 5, 13).getTime());
diff --git a/test/unit/lib/utils.js b/test/unit/lib/utils.js
index 6fea87a..20a1e87 100644
--- a/test/unit/lib/utils.js
+++ b/test/unit/lib/utils.js
@@ -39,7 +39,7 @@ describe('lib/utils', function () {
});
describe('stringToArray()', function () {
- it('converts a string to array by spliting it with given separator', function () {
+ it('converts a string to array by splitting it with given separator', function () {
expect(stringToArray('foo,bar,baz', ','), 'to equal', ['foo', 'bar', 'baz']);
expect(stringToArray('abc-def', '-'), 'to equal', ['abc', 'def']);
});