From 3c35383fea4ec58e5b77308183726524a4360f70 Mon Sep 17 00:00:00 2001 From: davidtrussler Date: Mon, 3 Jun 2024 13:09:24 +0100 Subject: [PATCH] Add test (WIP) --- .../spec/components/mainstream_table.spec.js | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 spec/javascripts/spec/components/mainstream_table.spec.js diff --git a/spec/javascripts/spec/components/mainstream_table.spec.js b/spec/javascripts/spec/components/mainstream_table.spec.js new file mode 100644 index 000000000..a4317b929 --- /dev/null +++ b/spec/javascripts/spec/components/mainstream_table.spec.js @@ -0,0 +1,25 @@ +/* global GOVUK */ + +describe('Table component', function () { + 'use strict' + + var table, mainstreamTable + + beforeEach(function () { + table = $('
') + + $('body').append(table) + + mainstreamTable = new GOVUK.Modules.MainstreamTable() + }) + + afterEach(function () { + table.remove() + }) + + describe('when first initialized', function () { + it('should do nothing', function() { + expect(1).toBe(1) + }) + }) +})