mirror of
https://github.com/SamEyeBam/animate.git
synced 2025-09-28 15:05:25 +00:00
larry babby and threejs for glsl
This commit is contained in:
36
webGl/my-threejs-test/node_modules/@parcel/diagnostic/test/JSONCodeHighlights.test.js
generated
vendored
Normal file
36
webGl/my-threejs-test/node_modules/@parcel/diagnostic/test/JSONCodeHighlights.test.js
generated
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
// @flow strict-local
|
||||
import assert from 'assert';
|
||||
|
||||
import {generateJSONCodeHighlights} from '../src/diagnostic';
|
||||
|
||||
describe('generateJSONCodeHighlights', () => {
|
||||
it('returns an escaped string 01', () => {
|
||||
let result = generateJSONCodeHighlights(
|
||||
`{
|
||||
"a": 1
|
||||
}`,
|
||||
[
|
||||
{key: '/a', type: 'key', message: 'foo1'},
|
||||
{key: '/a', type: 'value', message: 'foo2'},
|
||||
{key: '/a', message: 'foo3'},
|
||||
],
|
||||
);
|
||||
assert.deepEqual(result, [
|
||||
{
|
||||
start: {line: 2, column: 3},
|
||||
end: {line: 2, column: 5},
|
||||
message: 'foo1',
|
||||
},
|
||||
{
|
||||
start: {line: 2, column: 8},
|
||||
end: {line: 2, column: 8},
|
||||
message: 'foo2',
|
||||
},
|
||||
{
|
||||
start: {line: 2, column: 3},
|
||||
end: {line: 2, column: 8},
|
||||
message: 'foo3',
|
||||
},
|
||||
]);
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user