Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion modules/10-basics/10-hello-world/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { expect, test, vi } from 'vitest';

test('hello world', async () => {
const consoleLogSpy = vi.spyOn(console, 'log').mockImplementation(() => {});
const consoleLogSpy = vi.spyOn(console, 'log');
await import('./index.js');

const firstArg = consoleLogSpy.mock.calls.join('\n');
Expand Down
4 changes: 2 additions & 2 deletions modules/10-basics/40-instructions/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import { expect, test, vi } from 'vitest';

test('hello world', async () => {
const consoleLogSpy = vi.spyOn(console, 'log').mockImplementation(() => {});
test('instructions', async () => {
const consoleLogSpy = vi.spyOn(console, 'log');
await import('./index.js');

const firstArg = consoleLogSpy.mock.calls.join('\n');
Expand Down
4 changes: 2 additions & 2 deletions modules/10-basics/45-testing/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import { expect, test, vi } from 'vitest';

test('hello world', async () => {
const consoleLogSpy = vi.spyOn(console, 'log').mockImplementation(() => {});
test('testing', async () => {
const consoleLogSpy = vi.spyOn(console, 'log');
await import('./index.js');

const firstArg = consoleLogSpy.mock.calls.join('\n');
Expand Down
4 changes: 2 additions & 2 deletions modules/10-basics/50-syntax-errors/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import { expect, test, vi } from 'vitest';

test('hello world', async () => {
const consoleLogSpy = vi.spyOn(console, 'log').mockImplementation(() => {});
test('syntax errors', async () => {
const consoleLogSpy = vi.spyOn(console, 'log');
await import('./index.js');

const firstArg = consoleLogSpy.mock.calls.join('\n');
Expand Down
4 changes: 2 additions & 2 deletions modules/20-arithmetics/20-basic/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import { expect, test, vi } from 'vitest';

test('hello world', async () => {
const consoleLogSpy = vi.spyOn(console, 'log').mockImplementation(() => {});
test('basic', async () => {
const consoleLogSpy = vi.spyOn(console, 'log');
await import('./index.js');

const firstArg = consoleLogSpy.mock.calls.join('\n');
Expand Down
4 changes: 2 additions & 2 deletions modules/20-arithmetics/25-operator/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import { expect, test, vi } from 'vitest';

test('hello world', async () => {
const consoleLogSpy = vi.spyOn(console, 'log').mockImplementation(() => {});
test('operator', async () => {
const consoleLogSpy = vi.spyOn(console, 'log');
await import('./index.js');

const firstArg = consoleLogSpy.mock.calls.join('\n');
Expand Down
4 changes: 2 additions & 2 deletions modules/20-arithmetics/27-commutativity/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import { expect, test, vi } from 'vitest';

test('hello world', async () => {
const consoleLogSpy = vi.spyOn(console, 'log').mockImplementation(() => {});
test('commutativity', async () => {
const consoleLogSpy = vi.spyOn(console, 'log');
await import('./index.js');

const firstArg = consoleLogSpy.mock.calls.join('\n');
Expand Down
4 changes: 2 additions & 2 deletions modules/20-arithmetics/30-composition/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import { expect, test, vi } from 'vitest';

test('hello world', async () => {
const consoleLogSpy = vi.spyOn(console, 'log').mockImplementation(() => {});
test('composition', async () => {
const consoleLogSpy = vi.spyOn(console, 'log');
await import('./index.js');

const firstArg = consoleLogSpy.mock.calls.join('\n');
Expand Down
4 changes: 2 additions & 2 deletions modules/20-arithmetics/40-priority/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import { expect, test, vi } from 'vitest';

test('hello world', async () => {
const consoleLogSpy = vi.spyOn(console, 'log').mockImplementation(() => {});
test('priority', async () => {
const consoleLogSpy = vi.spyOn(console, 'log');
await import('./index.js');

const firstArg = consoleLogSpy.mock.calls.join('\n');
Expand Down
4 changes: 2 additions & 2 deletions modules/20-arithmetics/50-float/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import { expect, test, vi } from 'vitest';

test('hello world', async () => {
const consoleLogSpy = vi.spyOn(console, 'log').mockImplementation(() => {});
test('float', async () => {
const consoleLogSpy = vi.spyOn(console, 'log');
await import('./index.js');

const firstArg = consoleLogSpy.mock.calls.join('\n');
Expand Down
4 changes: 2 additions & 2 deletions modules/20-arithmetics/60-infinity/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import { expect, test, vi } from 'vitest';

test('hello world', async () => {
const consoleLogSpy = vi.spyOn(console, 'log').mockImplementation(() => {});
test('infinity', async () => {
const consoleLogSpy = vi.spyOn(console, 'log');
await import('./index.js');

const firstArg = consoleLogSpy.mock.calls.join('\n');
Expand Down
4 changes: 2 additions & 2 deletions modules/20-arithmetics/70-nan/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import { expect, test, vi } from 'vitest';

test('hello world', async () => {
const consoleLogSpy = vi.spyOn(console, 'log').mockImplementation(() => {});
test('nan', async () => {
const consoleLogSpy = vi.spyOn(console, 'log');
await import('./index.js');

const firstArg = consoleLogSpy.mock.calls.join('\n');
Expand Down
4 changes: 2 additions & 2 deletions modules/20-arithmetics/80-linting/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import { expect, test, vi } from 'vitest';

test('hello world', async () => {
const consoleLogSpy = vi.spyOn(console, 'log').mockImplementation(() => {});
test('linting', async () => {
const consoleLogSpy = vi.spyOn(console, 'log');
await import('./index.js');

const firstArg = consoleLogSpy.mock.calls.join('\n');
Expand Down
4 changes: 2 additions & 2 deletions modules/25-strings/10-quotes/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import { expect, test, vi } from 'vitest';

test('hello world', async () => {
const consoleLogSpy = vi.spyOn(console, 'log').mockImplementation(() => {});
test('quotes', async () => {
const consoleLogSpy = vi.spyOn(console, 'log');
await import('./index.js');

const firstArg = consoleLogSpy.mock.calls.join('\n');
Expand Down
4 changes: 2 additions & 2 deletions modules/25-strings/15-escape-characters/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import { expect, test, vi } from 'vitest';

test('hello world', async () => {
const consoleLogSpy = vi.spyOn(console, 'log').mockImplementation(() => {});
test('escape characters', async () => {
const consoleLogSpy = vi.spyOn(console, 'log');
await import('./index.js');

const firstArg = consoleLogSpy.mock.calls.join('\n');
Expand Down
4 changes: 2 additions & 2 deletions modules/25-strings/20-string-concatenation/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import { expect, test, vi } from 'vitest';

test('hello world', async () => {
const consoleLogSpy = vi.spyOn(console, 'log').mockImplementation(() => {});
test('string concatenation', async () => {
const consoleLogSpy = vi.spyOn(console, 'log');
await import('./index.js');

const firstArg = consoleLogSpy.mock.calls.join('\n');
Expand Down
4 changes: 2 additions & 2 deletions modules/25-strings/30-encoding/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import { expect, test, vi } from 'vitest';

test('hello world', async () => {
const consoleLogSpy = vi.spyOn(console, 'log').mockImplementation(() => {});
test('encoding', async () => {
const consoleLogSpy = vi.spyOn(console, 'log');
await import('./index.js');

const firstArg = consoleLogSpy.mock.calls.join('\n');
Expand Down
4 changes: 2 additions & 2 deletions modules/30-variables/10-definition/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import { expect, test, vi } from 'vitest';

test('hello world', async () => {
const consoleLogSpy = vi.spyOn(console, 'log').mockImplementation(() => {});
test('definition', async () => {
const consoleLogSpy = vi.spyOn(console, 'log');
await import('./index.js');

const firstArg = consoleLogSpy.mock.calls.join('\n');
Expand Down
4 changes: 2 additions & 2 deletions modules/30-variables/11-change/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import { expect, test, vi } from 'vitest';

test('hello world', async () => {
const consoleLogSpy = vi.spyOn(console, 'log').mockImplementation(() => {});
test('change', async () => {
const consoleLogSpy = vi.spyOn(console, 'log');
await import('./index.js');

const firstArg = consoleLogSpy.mock.calls.join('\n');
Expand Down
4 changes: 2 additions & 2 deletions modules/30-variables/13-variables-naming/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import { expect, test, vi } from 'vitest';

test('hello world', async () => {
const consoleLogSpy = vi.spyOn(console, 'log').mockImplementation(() => {});
test('variables naming', async () => {
const consoleLogSpy = vi.spyOn(console, 'log');
await import('./index.js');

const firstArg = consoleLogSpy.mock.calls.join('\n');
Expand Down
4 changes: 2 additions & 2 deletions modules/30-variables/15-variables-expressions/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import { expect, test, vi } from 'vitest';

test('hello world', async () => {
const consoleLogSpy = vi.spyOn(console, 'log').mockImplementation(() => {});
test('variables expressions', async () => {
const consoleLogSpy = vi.spyOn(console, 'log');
await import('./index.js');

const firstArg = consoleLogSpy.mock.calls.join('\n');
Expand Down
4 changes: 2 additions & 2 deletions modules/30-variables/18-variable-concatenation/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import { expect, test, vi } from 'vitest';

test('hello world', async () => {
const consoleLogSpy = vi.spyOn(console, 'log').mockImplementation(() => {});
test('variable concatenation', async () => {
const consoleLogSpy = vi.spyOn(console, 'log');
await import('./index.js');

const firstArg = consoleLogSpy.mock.calls.join('\n');
Expand Down
4 changes: 2 additions & 2 deletions modules/30-variables/19-naming-style/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import { expect, test, vi } from 'vitest';

test('hello world', async () => {
const consoleLogSpy = vi.spyOn(console, 'log').mockImplementation(() => {});
test('naming style', async () => {
const consoleLogSpy = vi.spyOn(console, 'log');
await import('./index.js');

const firstArg = consoleLogSpy.mock.calls.join('\n');
Expand Down
4 changes: 2 additions & 2 deletions modules/30-variables/20-magic-numbers/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import { expect, test, vi } from 'vitest';

test('hello world', async () => {
const consoleLogSpy = vi.spyOn(console, 'log').mockImplementation(() => {});
test('magic numbers', async () => {
const consoleLogSpy = vi.spyOn(console, 'log');
await import('./index.js');

const firstArg = consoleLogSpy.mock.calls.join('\n');
Expand Down
4 changes: 2 additions & 2 deletions modules/30-variables/23-constants/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import { expect, test, vi } from 'vitest';

test('hello world', async () => {
const consoleLogSpy = vi.spyOn(console, 'log').mockImplementation(() => {});
test('constants', async () => {
const consoleLogSpy = vi.spyOn(console, 'log');
await import('./index.js');

const firstArg = consoleLogSpy.mock.calls.join('\n');
Expand Down
4 changes: 2 additions & 2 deletions modules/31-advanced-strings/25-interpolation/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import { expect, test, vi } from 'vitest';

test('hello world', async () => {
const consoleLogSpy = vi.spyOn(console, 'log').mockImplementation(() => {});
test('interpolation', async () => {
const consoleLogSpy = vi.spyOn(console, 'log');
await import('./index.js');

const firstArg = consoleLogSpy.mock.calls.join('\n');
Expand Down
4 changes: 2 additions & 2 deletions modules/31-advanced-strings/30-symbols/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import { expect, test, vi } from 'vitest';

test('hello world', async () => {
const consoleLogSpy = vi.spyOn(console, 'log').mockImplementation(() => {});
test('symbols', async () => {
const consoleLogSpy = vi.spyOn(console, 'log');
await import('./index.js');

const firstArg = consoleLogSpy.mock.calls.join('\n');
Expand Down
4 changes: 2 additions & 2 deletions modules/31-advanced-strings/70-slices/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import { expect, test, vi } from 'vitest';

test('hello world', async () => {
const consoleLogSpy = vi.spyOn(console, 'log').mockImplementation(() => {});
test('slices', async () => {
const consoleLogSpy = vi.spyOn(console, 'log');
await import('./index.js');

const firstArg = consoleLogSpy.mock.calls.join('\n');
Expand Down
4 changes: 2 additions & 2 deletions modules/31-advanced-strings/90-multiline-strings/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import { expect, test, vi } from 'vitest';

test('hello world', async () => {
const consoleLogSpy = vi.spyOn(console, 'log').mockImplementation(() => {});
test('multiline strings', async () => {
const consoleLogSpy = vi.spyOn(console, 'log');
await import('./index.js');

const firstArg = consoleLogSpy.mock.calls.join('\n');
Expand Down
4 changes: 2 additions & 2 deletions modules/33-data-types/10-primitive-data-types/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import { expect, test, vi } from 'vitest';

test('hello world', async () => {
const consoleLogSpy = vi.spyOn(console, 'log').mockImplementation(() => {});
test('primitive data types', async () => {
const consoleLogSpy = vi.spyOn(console, 'log');
await import('./index.js');

const firstArg = consoleLogSpy.mock.calls.join('\n');
Expand Down
2 changes: 1 addition & 1 deletion modules/33-data-types/45-undefined/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { expect, test, vi } from 'vitest';

test('undefined', async () => {
const consoleLogSpy = vi.spyOn(console, 'log').mockImplementation(() => {});
const consoleLogSpy = vi.spyOn(console, 'log');
await import('./index.js');

// console.log must be called and must be passed an undefined argument
Expand Down
4 changes: 2 additions & 2 deletions modules/33-data-types/50-data-types-weak-typing/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import { expect, test, vi } from 'vitest';

test('hello world', async () => {
const consoleLogSpy = vi.spyOn(console, 'log').mockImplementation(() => {});
test('data types weak typing', async () => {
const consoleLogSpy = vi.spyOn(console, 'log');
await import('./index.js');

const firstArg = consoleLogSpy.mock.calls.join('\n');
Expand Down
4 changes: 2 additions & 2 deletions modules/33-data-types/52-data-types-immutability/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import { expect, test, vi } from 'vitest';

test('hello world', async () => {
const consoleLogSpy = vi.spyOn(console, 'log').mockImplementation(() => {});
test('data types immutability', async () => {
const consoleLogSpy = vi.spyOn(console, 'log');
await import('./index.js');

const firstArg = consoleLogSpy.mock.calls.join('\n');
Expand Down
4 changes: 2 additions & 2 deletions modules/33-data-types/55-data-types-casting/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import { expect, test, vi } from 'vitest';

test('hello world', async () => {
const consoleLogSpy = vi.spyOn(console, 'log').mockImplementation(() => {});
test('data types casting', async () => {
const consoleLogSpy = vi.spyOn(console, 'log');
await import('./index.js');

const firstArg = consoleLogSpy.mock.calls.join('\n');
Expand Down
4 changes: 2 additions & 2 deletions modules/35-calling-functions/100-call/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import { expect, test, vi } from 'vitest';

test('hello world', async () => {
const consoleLogSpy = vi.spyOn(console, 'log').mockImplementation(() => {});
test('call', async () => {
const consoleLogSpy = vi.spyOn(console, 'log');
await import('./index.js');

const firstArg = consoleLogSpy.mock.calls.join('\n');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import { expect, test, vi } from 'vitest';

test('hello world', async () => {
const consoleLogSpy = vi.spyOn(console, 'log').mockImplementation(() => {});
test('calling functions default params', async () => {
const consoleLogSpy = vi.spyOn(console, 'log');
await import('./index.js');

const firstArg = consoleLogSpy.mock.calls.join('\n');
Expand Down
Loading
Loading