Skip to content

Commit

Permalink
fix buffer check bug (#5 with test) (#6)
Browse files Browse the repository at this point in the history
Co-authored-by: Ohkubo KOHEI <kuboon@trick-with.net>
Co-authored-by: Maxim Mazurok <maxim@mazurok.com>
  • Loading branch information
3 people authored Sep 7, 2022
1 parent 3326ad3 commit 6eb538e
Show file tree
Hide file tree
Showing 11 changed files with 6,241 additions and 2,247 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Node.js & Deno CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 12
cache: 'npm'
- uses: denoland/setup-deno@v1
with:
deno-version: vx.x.x
- run: npm ci
- run: npm run build --if-present
- run: npm test
- run: deno test --allow-read deno-test/*.ts
17 changes: 0 additions & 17 deletions .travis.yml

This file was deleted.

3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

**Simple API for XML in TypeScript**

[![Build Status](https://travis-ci.org/Maxim-Mazurok/sax-ts.svg?branch=master)](https://travis-ci.org/Maxim-Mazurok/sax-ts)
[![Coverage Status](https://coveralls.io/repos/github/Maxim-Mazurok/sax-ts/badge.svg?branch=master)](https://coveralls.io/github/Maxim-Mazurok/sax-ts?branch=master)
[![CI status](https://github.com/Maxim-Mazurok/sax-ts/actions/workflows/test.yml/badge.svg)](https://github.com/Maxim-Mazurok/sax-ts/actions/workflows/test.yml)
[![License](https://img.shields.io/badge/license-ISC-brightgreen.svg)](https://github.com/Maxim-Mazurok/sax-ts/blob/master/LICENSE.md)
[![NPM](https://img.shields.io/npm/v/sax-ts.svg)](https://www.npmjs.com/package/sax-ts)
[![DenoLib](https://denolib.com/badge?scope=Maxim-Mazurok&repo=sax-ts)](https://github.com/denolib)
Expand Down
7 changes: 3 additions & 4 deletions build/src/sax.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/src/sax.js.map

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions deno-test/issue-ts-5.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import {SAXParser} from '../src/sax.ts';

Deno.test({name: 'hello world #5', permissions: {read: true}}, async () => {
const parser = new SAXParser(true, {});
const text = await Deno.readTextFile('deno-test/issue-ts-5.xml');
parser.write(text).close();
});
4,195 changes: 4,195 additions & 0 deletions deno-test/issue-ts-5.xml

Large diffs are not rendered by default.

Loading

0 comments on commit 6eb538e

Please sign in to comment.