
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
bootprint-unit-testing
Advanced tools
Unit-testing-tools for bootprint-projects
npm install bootprint-unit-testing
Consider a bootprint-module that uses the following Handlebarse-template as index.html.hbs
<body>
<p>name: {{name}}</p>
</body>
A test can be written like this:
/*!
* bootprint-unit-testing <https://github.com/bootprint/bootprint-unit-testing>
*
* Copyright (c) 2017 Nils Knappmeier.
* Released under the MIT license.
*/
/* eslint-env mocha */
'use strict'
const expect = require('chai').expect
const core = require('bootprint-unit-testing')(require('./module.js'), __dirname)
describe('The bootprint-unit-testing module', function() {
this.timeout(10000)
const context = {}
before(function() {
return core.run({ name: 'Nils' }, context)
})
it('The output should contain the name in a <p>-tag', function() {
expect(context.$('p').html()).to.contain('Nils')
})
})
The test will run bootprint with the given module and verify the generated HTML using the cheerio library.
Trace and clarify activated
The bootprint-unit-testing module
✓ The output should contain the name in a <p>-tag
1 passing (171ms)
bootprint-unit-testing
is published under the MIT-license.
See LICENSE.md for details.
For release notes, see CHANGELOG.md
See CONTRIBUTING.md.
4.0.4 (2020-01-27)
Note: Version bump only for package bootprint-monorepo
FAQs
Unit-testing-tools for bootprint-projects
The npm package bootprint-unit-testing receives a total of 3 weekly downloads. As such, bootprint-unit-testing popularity was classified as not popular.
We found that bootprint-unit-testing demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.