       for character in escapedCharacters
         {tokens} = grammar.tokenizeLine character
         expect(tokens[0].value).toEqual character
-        expect(tokens[0]).toHaveScope "constant.character.escape.powershell"
+        expect(tokens[0]).toHaveScopes ["constant.character.escape.powershell"]
 
   describe "Constants", ->
     describe "Constant values in kilobytes, megabytes, and gigabytes", ->


      it "should mark all parts of the string with the same scope", ->
        for token in tokens
          expect(token).toHaveScope "string.quoted.double.single-line.powershell"

      it "should tokenize the opening double-quote as punctuation", ->
        expect(tokens[0].value).toEqual "\""
        expect(tokens[0]).toHaveScope "punctuation.definition.string.begin.powershell"

      it "should tokenize the closing double-quote as empty string", ->
        expect(tokens[1].value).toEqual "\""


        it "should tokenize 'ForEach'", ->
          expect(tokens[0].value).toEqual "foreach"
          expect(tokens[0]).toHaveScopes ["keyword.control.flow.powershell"]

        it "should tokenize 'in'", ->
          expect(tokens[5].value).toEqual "in"
          expect(tokens[5]).toHaveScopes ["keyword.control.flow.powershell"]

      describe "Try-Catch-Finally statements", ->
        tokens = null
