Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
beradrian committed Nov 20, 2015
1 parent 9a6d842 commit 6903dcf
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 19 deletions.
6 changes: 3 additions & 3 deletions docs/blocks/event/ctrl.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
app.controller('Ctrl5', function($scope) {
$scope.roles = {
g: 'Guest',
u: 'User',
a: 'Administrator',
c: 'Customer',
a: 'Administrator'
g: 'Guest',
u: 'User'
};

$scope.testValue = 'Im not changed yet!';
Expand Down
6 changes: 3 additions & 3 deletions docs/blocks/object/ctrl.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
app.controller('Ctrl4', function($scope) {
$scope.roles = {
g: 'Guest',
u: 'User',
a: 'Administrator',
c: 'Customer',
a: 'Administrator'
g: 'Guest',
u: 'User'
};
$scope.user = {
roles: ['c']
Expand Down
2 changes: 1 addition & 1 deletion docs/blocks/object/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ describe('object', function() {
it('should check all', function() {
element(s+'button[ng-click="checkAll()"]').click();
check(a, [1,1,1,1]);
expect(element(s+'pre').text()).toBe('[\n \"g\",\n \"u\",\n \"c\",\n \"a\"\n]');
expect(element(s+'pre').text()).toBe('[\n \"a\",\n \"c\",\n \"g\",\n \"u\"\n]');
});

it('should uncheck all', function() {
Expand Down
24 changes: 12 additions & 12 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -351,10 +351,10 @@ <h3>demo</h3>
</label></div>
<script>app.controller('Ctrl4', function($scope) {
$scope.roles = {
g: 'Guest',
u: 'User',
a: 'Administrator',
c: 'Customer',
a: 'Administrator'
g: 'Guest',
u: 'User'
};
$scope.user = {
roles: ['c']
Expand Down Expand Up @@ -390,10 +390,10 @@ <h3>js</h3>
<pre class="prettyprint">var app = angular.module(&quot;app&quot;, [&quot;checklist-model&quot;]);
app.controller('Ctrl4', function($scope) {
$scope.roles = {
g: 'Guest',
u: 'User',
a: 'Administrator',
c: 'Customer',
a: 'Administrator'
g: 'Guest',
u: 'User'
};
$scope.user = {
roles: ['c']
Expand Down Expand Up @@ -760,10 +760,10 @@ <h3>demo</h3>
</label></div>
<script>app.controller('Ctrl5', function($scope) {
$scope.roles = {
g: 'Guest',
u: 'User',
a: 'Administrator',
c: 'Customer',
a: 'Administrator'
g: 'Guest',
u: 'User'
};

$scope.testValue = 'Im not changed yet!';
Expand Down Expand Up @@ -812,10 +812,10 @@ <h3>js</h3>
<pre class="prettyprint">var app = angular.module(&quot;app&quot;, [&quot;checklist-model&quot;]);
app.controller('Ctrl5', function($scope) {
$scope.roles = {
g: 'Guest',
u: 'User',
a: 'Administrator',
c: 'Customer',
a: 'Administrator'
g: 'Guest',
u: 'User'
};

$scope.testValue = 'Im not changed yet!';
Expand Down

0 comments on commit 6903dcf

Please sign in to comment.