Skip to content

Commit

Permalink
Add test (WIP)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtrussler committed Jun 4, 2024
1 parent dfe95fe commit 3c35383
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions spec/javascripts/spec/components/mainstream_table.spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/* global GOVUK */

describe('Table component', function () {
'use strict'

var table, mainstreamTable

beforeEach(function () {
table = $('<table data-module="mainstream-table"></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)
})
})
})

0 comments on commit 3c35383

Please sign in to comment.