Permalink
Browse files

Update dependencies

  • Loading branch information...
1 parent f0f54f3 commit 3ce61691f351f0d0d78e17b4ebecd795c59dd734 @jxnblk jxnblk committed Feb 8, 2016
Showing with 21 additions and 8 deletions.
  1. +1 −1 package.json
  2. +0 −7 test/grid.spec.js
  3. +20 −0 test/layout.spec.js
View
@@ -17,7 +17,7 @@
"basscss-align": "^1.0.1",
"basscss-border": "^4.0.2",
"basscss-flexbox": "^1.0.0-beta6",
- "basscss-grid": "^1.0.6",
+ "basscss-grid": "^2.0.0",
"basscss-hide": "^1.0.1",
"basscss-layout": "^3.1.0",
"basscss-margin": "^1.0.7",
View
@@ -10,17 +10,10 @@ describe('grid', () => {
const row = addElement('div', container)
const col = addElement('div', row)
- container.className = 'container'
row.className = 'clearfix'
wrapper.style.width = width + 'px'
- describe('container', () => {
- it('should set max-width', () => {
- expect(container.computedStyle.maxWidth).to.equal('1024px')
- })
- })
-
describe('col', () => {
it('should float left', () => {
col.className = 'col'
View
@@ -48,6 +48,26 @@ describe('layout', () => {
expect(div.computedStyle.maxWidth).to.match(/100\%|768px/)
})
+ it('should set max-width 24rem', () => {
+ div.className = 'max-width-1'
+ expect(div.computedStyle.maxWidth).to.equal('384px')
+ })
+
+ it('should set max-width 32rem', () => {
+ div.className = 'max-width-2'
+ expect(div.computedStyle.maxWidth).to.equal('512px')
+ })
+
+ it('should set max-width 48rem', () => {
+ div.className = 'max-width-3'
+ expect(div.computedStyle.maxWidth).to.equal('768px')
+ })
+
+ it('should set max-width 64rem', () => {
+ div.className = 'max-width-4'
+ expect(div.computedStyle.maxWidth).to.equal('1024px')
+ })
+
it('should set overflow hidden', () => {
div.className = 'overflow-hidden'
expect(div.computedStyle.overflow).to.equal('hidden')

0 comments on commit 3ce6169

Please sign in to comment.