tecsst

0.0.5 • Public • Published

tecsst Build Status

CSS testing framework without taking screenshots

Installation

$ npm install tecsst

Example

var Tecsst = require('tecsst')
 
var tecsst = new Tecsst('test/test.css')
 
var selector = '.btn-danger'
 
var expected  = [
    "display: inline-block",
    "text-align: center",
    "padding: 6px 12px",
    "font-size: 14px",
    "color: #fff",
    "background-color: #d2322d",
]
 
var result = tecsst.parse(selector, '480px')
 
tecsst.equal(expected, result, ".btn-danger test")
 
tecsst.end()

result:

Tecsst version: 0.0.5

Browser width: 480px
# .btn-danger test:
ok

# tests 1
# pass 1

all green, test clear!

License

The MIT License (MIT)

Copyright (c) 2014 Masaaki Morishita

Readme

Keywords

Package Sidebar

Install

npm i tecsst

Weekly Downloads

0

Version

0.0.5

License

MIT

Last publish

Collaborators

  • morishitter