0.0.5 • Published 10 years ago

tecsst v0.0.5

Weekly downloads
3
License
MIT
Repository
github
Last release
10 years ago

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

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.1

10 years ago