Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Commit

Permalink
fixup! refactor(*): separate jqLite/compile/sce camelCasing logic
Browse files Browse the repository at this point in the history
  • Loading branch information
mgol committed Oct 12, 2016
1 parent 273e9b0 commit 145b4bb
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test/jqLiteSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -1066,7 +1066,7 @@ describe('jqLite', function() {
expect(a.style.fooBar).toBe('bar');
});

it('should covert dash-separated strings to camelCase', function() {
it('should convert dash-separated strings to camelCase', function() {
var jqA = jqLite(a);

jqA.css('foo-bar', 'foo');
Expand All @@ -1078,7 +1078,7 @@ describe('jqLite', function() {
expect(a.style['foo:bar_baz']).toBe('baz');
});

it('should covert leading dashes followed by a lowercase letter', function() {
it('should convert leading dashes followed by a lowercase letter', function() {
var jqA = jqLite(a);

jqA.css('-foo-bar', 'foo');
Expand All @@ -1097,7 +1097,7 @@ describe('jqLite', function() {
expect(a.style['foo-42- A-B']).toBe('foo');
});

it('should covert the -ms- prefix to ms instead of Ms', function() {
it('should convert the -ms- prefix to ms instead of Ms', function() {
var jqA = jqLite(a);

jqA.css('-ms-foo-bar', 'foo');
Expand Down Expand Up @@ -2373,21 +2373,21 @@ describe('jqLite', function() {
expect(kebabToCamel('fooBar')).toBe('fooBar');
});

it('should covert dash-separated strings to camelCase', function() {
it('should convert dash-separated strings to camelCase', function() {
expect(kebabToCamel('foo-bar')).toBe('fooBar');
expect(kebabToCamel('foo-bar-baz')).toBe('fooBarBaz');
expect(kebabToCamel('foo:bar_baz')).toBe('foo:bar_baz');
});

it('should covert leading dashes followed by a lowercase letter', function() {
it('should convert leading dashes followed by a lowercase letter', function() {
expect(kebabToCamel('-foo-bar')).toBe('FooBar');
});

it('should not convert slashes followed by a non-letter', function() {
it('should not convert dashes followed by a non-letter', function() {
expect(kebabToCamel('foo-42- -a-B')).toBe('foo-42- A-B');
});

it('should not covert browser specific css properties in a special way', function() {
it('should not convert browser specific css properties in a special way', function() {
expect(kebabToCamel('-ms-foo-bar')).toBe('MsFooBar');
expect(kebabToCamel('-moz-foo-bar')).toBe('MozFooBar');
expect(kebabToCamel('-webkit-foo-bar')).toBe('WebkitFooBar');
Expand Down

0 comments on commit 145b4bb

Please sign in to comment.