var assert = require('assert')
var getCssClasses = require('..')

describe('get-css-classes', function() {

  it('should do return an empty array when no classes are found', function() {
    assert.deepEqual(getCssClasses('input[type="email"]:last-child'), [])
  })

  it('it should return an array of CSS classes', function() {
    assert.deepEqual(
      getCssClasses('.some.awesome input[type="email"].css .classes > .here #wootwoot'),
      ['.some', '.awesome', '.css', '.classes', '.here']
    )
  })
})

@@ -59,16 +59,125 @@
 ('..')%0A%0A
+var selectors = %5B%0A  '.some.selector',%0A  '.some + .selector',%0A  '.some %3E .selector',%0A  'li.some .selector'%0A%5D%0A%0A
 describe
@@ -609,12 +609,201 @@
   )%0A  %7D)
+%0A%0A  it('should handle a wide array of selectors', function() %7B%0A    selectors.forEach(function(selector) %7B%0A      assert.deepEqual(getCssClasses(selector), %5B'.some', '.selector'%5D)%0A    %7D)%0A  %7D)
 %0A%7D)%0A

Add more test cases