@@ -17,19 +17,20 @@ var streams = require('stream');
1717var helper = require ( './helper' ) ;
1818var imacss = require ( '../' ) ;
1919
20- describe ( 'The imacss' , function ( ) {
20+ var expect = require ( 'expect.js' ) ;
21+
22+ describe ( 'The imacss' , function suite ( ) {
2123 var selector = '.imacss' ;
2224
23- it ( '"transform" method should be able to handle globs' , function ( done ) {
25+ it ( '"transform" method should be able to handle globs' , function test ( done ) {
2426 var stream = new streams . Writable ( ) ;
2527
26- imacss . transform ( './specs/**/*.svg' )
27- . pipe ( stream ) ;
28+ imacss . transform ( './specs/**/*.svg' ) . pipe ( stream ) ;
2829
29- stream . _write = function ( css , enc , next ) {
30+ stream . _write = function ( css ) {
3031 css = css . toString ( 'utf-8' ) ;
3132
32- expect ( css . substring ( 0 , selector . length ) ) . toBe ( selector ) ;
33+ expect ( css . substring ( 0 , selector . length ) ) . to . be ( selector ) ;
3334
3435 done ( ) ;
3536 } ;
@@ -38,15 +39,14 @@ describe('The imacss', function () {
3839 it ( '"transform" method should be able to handle a Vinyl file object' , function ( done ) {
3940 var stream = new streams . Writable ( ) ;
4041
41- imacss . transform ( helper . createImageFile ( ) )
42- . pipe ( stream ) ;
42+ imacss . transform ( helper . createImageFile ( ) ) . pipe ( stream ) ;
4343
44- stream . _write = function ( css , enc , next ) {
44+ stream . _write = function ( css ) {
4545 css = css . toString ( 'utf-8' ) ;
4646
47- expect ( css . substring ( 0 , selector . length ) ) . toBe ( selector ) ;
47+ expect ( css . substring ( 0 , selector . length ) ) . to . be ( selector ) ;
4848
4949 done ( ) ;
5050 } ;
5151 } ) ;
52- } ) ;
52+ } ) ;
0 commit comments