Sha256: 7edf136eabe474349ec7f50edd416c0fce534ec8c6fa2b9ea714ae1e25fb9d6c

Contents?: true

Size: 782 Bytes

Versions: 1

Compression:

Stored size: 782 Bytes

Contents

spec-name {
  // set any variables we need.
  $base-size: 10px;
  // import the scss files we want to test.
  @import "../../functions";

  strip-units {
    remove-from-em {
      expect: to-equal(strip-units(1em), 1);
    }
  }

  to-px {
    basic-conversion {
      expect: to-equal(to-px(1em), 10px);
    }
    basic-conversion-not {
      expect: to-not-equal(to-px(10em), 10px);
    }
  }

  to-em {
    basic-conversion {
      expect: to-equal(to-em(10px), 1em);
    }

    convert-with-em-context {
      expect: to-equal(to-em(10px, 2em), .5em);
    }

    convert-with-px-context {
      expect: to-equal(to-em(10px, 20px), .5em);
    }
  }


  has-text {
    expect: to-contain('pi', 'pixel')
  }

  does-not-have-text {
    expect: to-not-contain('p0', 'pixel')
  }
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sasspectations-0.0.1 examples/spec/scss/functions_spec.scss