Skip to content

Commit

Permalink
fixed typos in comments/console.logs()
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinit Shahdeo committed Dec 7, 2019
1 parent 847006c commit 28bf7e5
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ Slot No. Registration No Color

- **slot_numbers_for_cars_with_colour < COLOR >**: `slot_numbers_for_cars_with_colour White` will display slot numbers of the cars of white color e.g. `1, 3`

- **slot_number_for_registration_number < REGISTRATION NUMBER >**: `slot_number_for_registration_number MH-04-AY-1111` will display the slot number for the car with registraion number MH-04-AY-1111.
- **slot_number_for_registration_number < REGISTRATION NUMBER >**: `slot_number_for_registration_number MH-04-AY-1111` will display the slot number for the car with registration number MH-04-AY-1111.

- **leave_car_by_registration_number**: `leave_car_by_registration_number JH-01-LT-0008` will free the slot occupied by car with registration number JH-01-LT-0008.

Expand Down
2 changes: 1 addition & 1 deletion scripts/create-docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ console.log(chalk.yellow.bold('Creating documentation using JSDoc...\n'));

sh.exec(command, (code, stderr, stdout) => {
if (code !== 0 && stderr) {
console.log(chalk.red.bold('Error occured while packaging Parking Lot\n'));
console.log(chalk.red.bold('Error occurred while packaging Parking Lot\n'));
return 0;
}
else {
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ var commandLineInputs = process.argv, // processing command line inputs
var Parking = require('./modules/parkingLot.js'),
parkingLot = new Parking();

// to avoid memory leaks errors, deafult max listeners = 10
// to avoid memory leaks errors, default max listeners = 10
require('events').EventEmitter.defaultMaxListeners = 0;

if (commandLineInputs[commandLineInputs.length - 1].endsWith('.txt')) {
Expand Down
2 changes: 1 addition & 1 deletion src/modules/car.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/
class Car {
constructor (NUMBER, COLOR) {
this.NUMBER = NUMBER; // unique propery of an instance of car class
this.NUMBER = NUMBER; // unique property of an instance of car class
this.COLOR = COLOR;
}

Expand Down
4 changes: 2 additions & 2 deletions src/modules/parkingLot.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ class ParkingLot {
}

/**
* @description Returns an array containg parking details i.e. slot no, registration number and color
* @description Returns an array containing parking details i.e. slot no, registration number and color
*/
getParkingStatus () {
var arr = new Array();
Expand All @@ -136,7 +136,7 @@ class ParkingLot {
/**
*
* @param {String} input user's input via terminal
* @description returns a comma separated string of regsitration numbers of car having same color.
* @description returns a comma separated string of registration numbers of car having same color.
* It returns null if car is not found
*/
getCarsWithSameColor (input) {
Expand Down
2 changes: 1 addition & 1 deletion tests/specs.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ describe('Testing Functions in ParkingLot class', function () {
done();
});

it('Registeration no. for cars with white color', function (done) {
it('Registration no. for cars with white color', function (done) {
var ele = parkingLot.getCarsWithSameColor(commands[11]);
ele = ele.split(', ');
assert.equal(ele[0], 'KA-01-HH-1234');
Expand Down

0 comments on commit 28bf7e5

Please sign in to comment.