<commit_before>import test from 'tape';
import canvas from 'canvas';
import jsdom from 'jsdom';

import { square } from '../src/shapes.js';

test('square returns a canvas element', function (t) {
    t.plan(1);

    global.document = jsdom.jsdom('<html></html>')
    global.window = global.document.defaultView;

    let testSquare = square(10);

    t.equal(testSquare instanceof window.HTMLCanvasElement, true);
});<commit_msg>Added test for circle shape and for shape sizes<commit_after>import test from 'tape';
import canvas from 'canvas';
import jsdom from 'jsdom';

import { square, circle } from '../src/shapes.js';

global.document = jsdom.jsdom('<html></html>')
global.window = global.document.defaultView;

test('square returns a canvas element of specified width and height', (t) => {
  t.plan(2);

  let testSquare = square(10);

  t.equal(testSquare instanceof window.HTMLCanvasElement, true);
  t.equal(testSquare.width, 10);
});

test('circle returns a canvas element of specified width and height', (t) => {
  t.plan(2);

  let testCircle = circle(10);

  t.equal(testCircle instanceof window.HTMLCanvasElement, true);
  t.equal(testCircle.width, 10);
});
{'fraction_non_alphanumeric': 0.1426131511528608, 'fraction_numerical': 0.011101622544833475, 'mean_word_length': 4.634615384615385, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7608119', 'n_tokens_mistral': 376, 'n_tokens_neox': 361, 'n_words': 106}