Skip to content

Commit

Permalink
format code
Browse files Browse the repository at this point in the history
  • Loading branch information
pirxpilot committed Apr 18, 2024
1 parent ef4a960 commit c89838d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions test/ical.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function compareLines(actual, expected) {
actual = actual.split('\r\n').filter(notStamp);
expected = expected.split('\r\n').filter(notStamp);

for(let i = 0; i < actual.length; i += 1) {
for (let i = 0; i < actual.length; i += 1) {
actual[i].should.eql(expected[i], `line: ${i}`);
}

Expand All @@ -36,15 +36,15 @@ function compareLines(actual, expected) {

describe('ical', function () {

it('simple trip', function() {
it('simple trip', function () {
const t = require('./fixtures/simple-trip.json');
const generated = ical(t);
const expected = readFileSync('fixtures/simple.ics');

compareLines(generated, expected);
});

it('multi trip', function() {
it('multi trip', function () {
const t = require('./fixtures/multi-trip.json');
const generated = ical(t);
const expected = readFileSync('fixtures/multi.ics');
Expand Down
10 changes: 5 additions & 5 deletions test/property.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const decoder = new TextDecoder();

describe('property', function () {

it('short', function() {
it('short', function () {
const p = property('abc', 'ąbć');

const { value, done } = p.next();
Expand All @@ -17,7 +17,7 @@ describe('property', function () {
p.next().done.should.equal(true);
});

it('long', function() {
it('long', function () {
const p = property('A', 'a'.repeat(100));

const values = Array.from(p);
Expand All @@ -31,7 +31,7 @@ describe('property', function () {
strings[1].should.equal(` ${'a'.repeat(27)}\r\n`);
});

it('very long', function() {
it('very long', function () {
const p = property('A', 'a'.repeat(300));

const strings = Array.from(p).map(s => decoder.decode(s));
Expand All @@ -44,7 +44,7 @@ describe('property', function () {
strings[4].should.equal(` ${'a'.repeat(5)}\r\n`);
});

it('long with multibyte', function() {
it('long with multibyte', function () {
const p = property('A', 'ą'.repeat(100));

const strings = Array.from(p).map(s => decoder.decode(s));
Expand All @@ -55,7 +55,7 @@ describe('property', function () {
strings[2].should.equal(` ${'ą'.repeat(100 - 37 - 36)}\r\n`);
});

it('long with emoji', function() {
it('long with emoji', function () {
const p = property('A', '🌻'.repeat(100));

const strings = Array.from(p).map(s => decoder.decode(s));
Expand Down

0 comments on commit c89838d

Please sign in to comment.