test: fix test cases after rebase

This commit is contained in:
harttle
2020-12-08 00:20:43 +08:00
parent f9f595f0f4
commit ef43120d6e
2 changed files with 3 additions and 5 deletions
+3 -3
View File
@@ -2,15 +2,15 @@ import * as chai from 'chai'
import * as sinonChai from 'sinon-chai'
import { PropertyAccessToken } from '../../../src/tokens/property-access-token'
import { QuotedToken } from '../../../src/tokens/quoted-token'
import { WordToken } from '../../../src/tokens/word-token'
import { IdentifierToken } from '../../../src/tokens/identifier-token'
chai.use(sinonChai)
const expect = chai.expect
describe('PropertyAccessToken', function () {
describe('getVariableAsText', function () {
it('should return correct value for WordToken', function () {
const token = new PropertyAccessToken(new WordToken('foo', 0, 3), [], 3)
it('should return correct value for IdentifierToken', function () {
const token = new PropertyAccessToken(new IdentifierToken('foo', 0, 3), [], 3)
expect(token.getVariableAsText()).to.equal('foo')
})
it('should return correct value for QuotedToken', function () {