Skip to content

Commit 4cc27a4

Browse files
author
mouse
committed
added code of conduct
updated copy updated tests
1 parent 532f305 commit 4cc27a4

File tree

10 files changed

+156
-87
lines changed

10 files changed

+156
-87
lines changed

.jshintrc

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
2-
32
"bitwise" : true,
43
"curly" : true,
54
"eqeqeq" : true,

README.rst

+1
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ Change log
106106
0.4.2
107107
~~~~~
108108

109+
+ upgraded tests
109110
+ fixed bugs with setting falsey values into text/html
110111
+ fixed bugs with selection by id
111112
+ updated copy on site and readme

dist/microbe.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Released under the MIT license
77
* http://m.icro.be/license
88
*
9-
* Date: Tue Sep 01 2015
9+
* Date: Wed Sep 02 2015
1010
*/
1111
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.µ=e()}}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
1212
/**

package.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,15 @@
4747
"dependencies": {},
4848
"keywords": [
4949
"microbe",
50+
"microbejs",
5051
"dom",
5152
"javascript",
5253
"observe",
5354
"selector",
55+
"engine",
5456
"css4",
5557
"http",
56-
"event"
58+
"event",
59+
"class"
5760
]
5861
}

tests/tests.js

+28-1
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ module.exports = asap;
632632

633633
module.exports = function( buildTest )
634634
{
635-
var version = '0.4.1';
635+
var version = '0.4.2';
636636

637637
var _observables = µ().get ? true : false;
638638

@@ -1428,6 +1428,32 @@ module.exports = function( buildTest )
14281428
QUnit.module( 'cytoplasm/cytoplasm.js' );
14291429

14301430

1431+
/**
1432+
* µ init wrap element tests
1433+
*
1434+
* @test one body
1435+
* @test passes
1436+
*/
1437+
QUnit.test( 'wrap an empty set', function( assert )
1438+
{
1439+
var µBody = µ( [] );
1440+
1441+
assert.equal( µBody.length, 0, 'empty set' );
1442+
assert.equal( µBody[ 0 ], undefined, 'undefined 0' );
1443+
1444+
buildTest(
1445+
'µ( [] )', function()
1446+
{
1447+
return µ( [] );
1448+
},
1449+
1450+
'$( [] )', function()
1451+
{
1452+
return $( [] );
1453+
} );
1454+
});
1455+
1456+
14311457
/**
14321458
* µ init wrap element tests
14331459
*
@@ -1497,6 +1523,7 @@ module.exports = function( buildTest )
14971523

14981524
assert.equal( µDiv.length, 1, 'one div' );
14991525
assert.deepEqual( µDiv[ 0 ], _div, 'passes' );
1526+
assert.equal( µ( '.exarmple-classssss' ).length, 0, 'successfully fails' );
15001527

15011528
buildTest(
15021529
'µ( \'.example--class\' )', function()

tests/unit/core.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
module.exports = function( buildTest )
44
{
5-
var version = '0.4.1';
5+
var version = '0.4.2';
66

77
var _observables = µ().get ? true : false;
88

tests/unit/cytoplasm/cytoplasm.js

+27
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,32 @@ module.exports = function( buildTest )
44
QUnit.module( 'cytoplasm/cytoplasm.js' );
55

66

7+
/**
8+
* µ init wrap element tests
9+
*
10+
* @test one body
11+
* @test passes
12+
*/
13+
QUnit.test( 'wrap an empty set', function( assert )
14+
{
15+
var µBody = µ( [] );
16+
17+
assert.equal( µBody.length, 0, 'empty set' );
18+
assert.equal( µBody[ 0 ], undefined, 'undefined 0' );
19+
20+
buildTest(
21+
'µ( [] )', function()
22+
{
23+
return µ( [] );
24+
},
25+
26+
'$( [] )', function()
27+
{
28+
return $( [] );
29+
} );
30+
});
31+
32+
733
/**
834
* µ init wrap element tests
935
*
@@ -73,6 +99,7 @@ module.exports = function( buildTest )
7399

74100
assert.equal( µDiv.length, 1, 'one div' );
75101
assert.deepEqual( µDiv[ 0 ], _div, 'passes' );
102+
assert.equal( µ( '.exarmple-classssss' ).length, 0, 'successfully fails' );
76103

77104
buildTest(
78105
'µ( \'.example--class\' )', function()

www/code-of-conduct/index.html

+85-81
Large diffs are not rendered by default.

www/css/home.css

+8
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,14 @@ p.center
8686
}
8787

8888

89+
#code-of-conduct li
90+
{
91+
margin: 10px 0;
92+
font-size: 17px;
93+
line-height: 1.6;
94+
}
95+
96+
8997
.footer
9098
{
9199
font-size: 15px;

www/license/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html lang="en">
33
<head>
44
<meta charset="utf-8">
5-
<title>Microbe</title>
5+
<title>microbe</title>
66
<meta http-equiv="x-ua-Compatible" content="ie=edge">
77
<meta name="viewport" content="width=device-width,initial-scale=1">
88
<meta name="description" content="">

0 commit comments

Comments
 (0)