Skip to content

matype/tecsst

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 browserWidth = '480px'

var expected  = [
    "display: inline-block",
    "text-align: center",
    "padding: 6px 12px",
    "font-size: 14px",
    "color: #fff",
    "background-color: #d2322d",
    "width: 95%"
]

var result = tecsst.parse(selector, browserWidth)

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

About

CSS testing framework without taking screenshots

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published